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

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

int main() {
  int A, B;
  cin >> A >> B;
  
  int S = A + B;
  int T = A - B;
  int U = A * B;
  
  if (S >= T && S >= U) {
    cout << S << endl;
  } else if (T >= S && T >= U) {
    cout << T << endl;
  } else {
    cout << U << endl;
  }
}