
function Main(input) {
    var a = parseInt(input[0], 10);
    var b = parseInt(input[1], 10);

    console.log(Math.max(Math.max(a + b, a - b), a * b));
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));