const input = require('fs').readFileSync('/dev/stdin', 'utf8');

const a = Number(input.split(' ')[0]);

const b = Number(input.split(' ')[1]);

const add = a + b;

const sub = a - b;

const mul = a * b;

console.log(Math.max(add, sub, mul));
