"use strict";
let input = require("fs").readFileSync("/dev/stdin", "utf8");
const [a, b] = input.split(" ").map(e => Number(e));
const output = Math.max(a + b, a - b, a * b);

console.log(output === -0 ? 0 : output);