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.