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

const list = input.split(' ');

const a = Number(list[0]);

const b = Number(list[1]);

const add = a + b;

const sub = a - b;

const mul = a * b;

const max = Math.max(add, sub, mul);

console.log(max);
