function Main(input) {
    var AB = input.split('/n')[0].split(' ');
    var A = Number(AB[0]);
    var B = Number(AB[1]);
    
    console.log(Math.max(A + B, A - B, A * B));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));