"use strict";

function main(arg) {
    const A = parseInt(arg.split("\n")[0].split(" ")[0]);
    const B = parseInt(arg.split("\n")[0].split(" ")[1]);
    
    const calc = [];
    
    calc.push(A + B);
    calc.push(A - B);
    calc.push(A * B);
    
    console.log(parseInt(Math.max(...calc)));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));