ary = gets.split(' ').map(&:to_i)
ps = ary[0] + ary[1]
ms = ary[0] - ary[1]
ss = ary[0] * ary[1]
re = 0
if ps > ms
  re = ps if ps > ss
  re = ss if ss > ps
else
  re = ms if ms > ss
  re = ss if ss > ms 
end
p re