function Main(input){
var all = input.split(" ");
var A = parseInt(all[0],10);
var B = parseInt(all[1],10);

var p = A + B;
var m = A - B;
var t = A * B;


if(p >= m && p >= t){
    console.log(p);
}else if(m >= p && m >= p){
    console.log(m);
}else if(t >= p && t >= m){
    console.log(t);
}
}





Main(require('fs').readFileSync('/dev/stdin', 'utf8'));