#include<bits/stdc++.h>
using namespace std;
int main (){
    long long int a,b,c,d,sum,mul,total;

    cin>>a>>b;
    c=a+b;
    d=a-b;
    mul=a*b;

    cout<<max(mul,max(c,d))<<endl;



return 0;
}
