function Main(input) {
  var tmp = input.split(' ');
  var a = parseInt(tmp[0], 10);
  var b = parseInt(tmp[1], 10);

  //出力
  console.log('%d', Math.max(a + b, a - b, a * b));
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));

