function Main(input) {
    input = input.split("\n");
  	tmp = input[0].split(" ");
    var a = tmp[0];
    var b = tmp[1];

	console.log(Math.max(a+b,a-b,a*b));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));