process.stdin.resume();
process.stdin.setEncoding('utf8');

var inputlines = [];
var reader = require('readline').createInterface({
    input: process.stdin,
    output: process.stdout
});
reader.on('line', (line) => {
    inputlines.push(line);
});
reader.on('close', () => {
    mainfunc(inputlines);
});

function mainfunc(lines){
    const lin = lines[0].split(" ");
    const a = Number(lin[0]);
    const b = Number(lin[1]);

    let m = a + b;
    if(a - b > m)m=a - b;
    if(a * b > m)m = a * b;

    console.log(m);
}

module.exports = mainfunc;