'use strict';

function Main(INPUT) {
    const N = INPUT.split(" ").map(n => Number(n));
    console.log(Math.max(N[0] + N[1], N[0] - N[1], N[0] * N[1]));
}

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