function Main(input) {
  lines = input.split('\n')
  a = input.split(' ')[0] * 1
  b = input.split(' ')[1] * 1
  console.log(Math.max(a-b , a+b, a*b))
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"))