#include <bits/stdc++.h>
#define rep(i,n) for(ll i=0;i<(n);++i)
#define sayyes cout<<"Yes"<<endl;
#define sayno cout<<"No"<<endl;
using namespace std;
typedef long long ll;
const double PI=acos(-1);
typedef pair<int,int>P;
const int mod =1e9+7;

int main()
{
    int a,b;
    cin>>a>>b;
    cout<<max(max(a+b,a-b),a*b);
}

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;

int main(){ 
  ll A,B;
  cin >> A >> B;
  
  if(max(A+B,A*B) > A-B) cout << max(A+B,A*B) << endl;
  else cout << A-B << endl;
}
