function Main(input){
  input = input.trim();
  const a = input.split(" ");
  const n = parseInt(a[0], 10),
        m = parseInt(a[1], 10);
  
  console.log(Math.max(n+m,n-m,n*m));
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));