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