"use strict";

const input = require("fs").readFileSync("/dev/stdin", "utf8");

const inputs = input.split(" ");
const A = Number(inputs[0]);
const B = Number(inputs[1]);

const main = (A, B) => {
    let add, sub, multi = 0;
    add = A + B;
    sub = A - B;
    multi = A * B;

    return  Math.max(add, sub, multi);
};

console.log(main(A, B));