function Main(input) {
  nums = input.split(" ");
  const a = parseInt(nums[0], 10);
  const b = parseInt(nums[1], 10);
  console.log(Math.max((a + b), (a - b), (a * b)))
}

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