#include<bits/stdc++.h>
using namespace std;

int main()
{

    int a,b;
    cin>>a>>b;
    
    int sum=0,sub=0,mul=0,ans=0;
    sum=(a+b);
    sub=(a-b);
    mul=(a*b);

    ans=max(sum,max(sub,mul));
    cout<<ans<<endl;

    return 0;
}
