function Main(input) {
  const [a, b] = input.trim().split(" ").map(Number);
  const result = Math.max(Math.max(a+b, a-b), a*b);
  
  console.log(result);
}

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