'use strict';(function(input){
  
  input=input.trim().split(/\s+/).map(x=>x-0);
  const A=input[0],
        B=input[1];
  console.log(Math.max(A+B,A-B,A*B));
})(require('fs').readFileSync('/dev/stdin','utf8'));