#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (int)(n); i ++)
#define irep(i,n) for (int i = (int)(n) - 1;i >= 0;--i)
using namespace std;
using ll = long long;
using PL = pair<ll,ll>;
using P = pair<int,int>;
constexpr int INF = 1000000000;
constexpr long long HINF = 1000000000000000;
constexpr long long MOD = 1000000007;// = 998244353;
constexpr double EPS = 1e-4;
constexpr double PI = 3.14159265358979;

int main() {
    int A,B; cin >> A >> B;
    int ans = max({A + B,A - B,A*B});
    cout << ans << '\n';
    return 0;
}
 #include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,sum,sub,mul;
  cin>>a>>b;
  sum=a+b;
  sub=a-b;
  mul=a*b;
  
  int ans = max(sum,max(sub,mul));
  
  if(ans==0)
  cout<<0<<endl;
  else
  cout<<ans<<endl;
}