'use strict';

function main(input) {
  const args = input.split(' ');

  const a = parseInt(args[0], 10);
  const b = parseInt(args[1], 10);

  const add = a + b;
  const sub = a - b;
  const mul = a * b;
  let max = 0;

  max = add > sub ? add : sub;
  max = max > mul ? max : mul;
  
  console.log(parseInt(max));
}

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