function main(input) {
    var args = input.trim().split(" ").map((v) => parseInt(v));
    var A = Number(args[0]);
    var B = Number(args[1]);

    console.log(Math.max(A + B, A - B, A * B));
}

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