function Main(input) {
  lines = input.split(/\r\n|\r|\n/);
  var A = parseInt(lines[0].split(" ")[0]);
  var B = parseInt(lines[0].split(" ")[1]);
  var temp = 0;

  temp = A + B;

  if(temp < A-B){
    temp = A - B;
  }
  if(temp < A*B){
    temp = A * B;
  }
  
  console.log(temp);

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