// https://abc098.contest.atcoder.jp/tasks/abc098_a

function parse(input) {
  return input
    .trim()
    .split(" ")
    .map(number => parseInt(number, 10))
}

function f(a, b) {
  const wa = a + b
  const sa = a - b
  const seki = a * b

  var max = wa
  max = sa > max ? sa : max
  max = seki > max ? seki : max

  return max
}

module.exports = {
  parse,
  f,
}

function Main(input) {
  const arr = parse(input)
  const a = arr[0]
  const b = arr[1]

  console.log("%s", f(a, b))
}

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