program main
  implicit none
integer :: a, b, c = 0, d = 0, e = 0, f = 0, g = 0

read *, a, b


d = a + b
e = a - b
f = a * b

if (d <= e) then
   g = e
else
   g = d
end if

if (g <= f) then
   g = f
else
   continue
end if

print *, g

end program main