function main(input) {
  const tmp = input.trim().split(' ')
  const a = parseInt(tmp[0])
  const b = parseInt(tmp[1])

  console.log(Math.max(a + b, a - b, a * b))
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))