function Main(input) {
 var result = (A,B) => {
   if ( A+B > A-B) {
     if (A+B > A*B) {
       console.log(A+B);
   } else {
       console.log(A*B);
   }
  }else {
     if (A-B > A*B) {
       console.log(A-B);
   } else {
       console.log(A*B);
   }
  }
 };
  result(A + B);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8").trim())