function main(inp) {
  const args = inp.split(' ');
  const a = Number(args[0]);
  const b = Number(args[1]);
  console.log(Math.max(a+b,a-b,a*b)+0);
}
main(require('fs').readFileSync('/dev/stdin', 'UTF-8'));