A, B = gets.chomp.split(' ').map(&:to_i)

sum = A + B
sub = A - B
multi = A * B
ret = if multi < sum
        sum
      else
        multi
      end

ret = if ret < sub
        sub
      else
        ret
      end

print ret
