function main(input) {
  const A = parseInt(input.split(" ")[0], 10);
  const B = parseInt(input.split(" ")[1], 10);
  console.log(Math.max.apply(null, [A+B,A-B,A*B]));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));