function Main(input) {
  var A = parseInt(input.split(" ")[0]);
  var B = parseInt(input.split(" ")[1]);
  
  var plus = A + B;//-32
  var multi = A * B;//-33
  var minus = A - B;//-34
  
  console.log(Math.max(plus,multi,minus));
  
}

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