function main(input) {
  const args = input.split(' ');
  const num1 = parseInt(args[0], 10);;
  const num2 = parseInt(args[1], 10);;

  const plus = num1 + num2;
  const minus = num1 - num2;
  const multiple = num1 * num2;

  const max = plus >= minus ? (plus >= multiple ? plus : multiple) : (minus >= multiple ? minus : multiple);

  console.log(max);
}

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