#include <iostream>
using namespace std;
int main ()
{
    int a; int b;
    int sum,mult,sub;
    cin >>a;
    cin>>b;
    sum= a+b;
    mult=a*b;
    sub=a-b;
    if (sum>sub && sum >mult){
        cout <<sum<<endl;
    } else if (sub>sum && sub >mult){
        cout<<sub<<endl;
    }else {
        cout << mult << endl;
    }
    return 0;
}
