
#include<bits/stdc++.h>
using namespace std ;
int main()
{
    int m , n ,a,b,c,ans;
    cin>>m>>n;
    a=m+n;
    b=m-n;
    c=m*n;
    ans= max(a,b);
    ans = max(ans,c);
    cout<<ans<<endl;
    return 0;

}
