const Main = input => {
  input = input.split("\n")[0].split(' ').map(v => parseInt(v, 10))
  console.log(Math.max.apply(Math, [input[0]-input[1], input[0]+input[1], input[0]*input[1]]))
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"))