var
a, b: integer;
begin
readln(a);
readln(b);
if a >= b then
Writeln(a + 10) end;
if b > a then
writeln(b - 5);
end;
end.
var
a, b: integer;
begin
readln(a);
readln(b);
begin
if a >= b then
Writeln(a + 10) end;
begin
if b > a then
writeln(b - 5);
end;
end.