const numberList = require('fs').readFileSync('/dev/stdin','utf8').trim().split(' ').map(e => parseInt(e))

const a = numberList[0]
const b = numberList[1]

const sum = a + b
const sub = a - b
const mul = a * b

var max = sum

max = max > sub ? max : sub
max = max > mul ? max : mul

console.log(max)
