'use strict';
const main = input => {
  input = input[0].split(' ').map(val => parseInt(val, 10));
  const a = input[0], b = input[1];
  console.log(Math.max(a+b,a-b,a*b));
};
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));