function Main (input) {
  const inputs = input.split(/\s/g).map((num) => parseInt(num));
  const patterns = [
    inputs[0] + inputs[1],
    inputs[0] - inputs[1],
    inputs[0] * inputs[1]
  ];
  console.log('%s', Math.max(...patterns));
}

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