function Main(input) {
    input = input.split("\n");
    var a = parseInt(input[0], 10);
    var a = parseInt(input[1], 10);

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