#include <iostream>
using namespace std;

int main()
{
    int a,b,x,y,z;
    cin>>a>>b;
    x=a+b;
    y=a-b;
    z=a*b;
    if(x>=y&&x>=z)
     cout<<x;
    else if(y>=x&&y>=z)
     cout<<y;
    else cout<<z;
   
return 0;
}