function Main (input) {
  input = input.split("\n")[0].split(" ").map(Number);
  var A = input[0];
  var B = input[1];
  console.log(Math.max(A+B, A-B, A*B));
}

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