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

int main () {
  int A, B;
  cin >> A >> B;

  int tasu = A + B;
  int hiku = A - B;
  int kake = A * B;

  if (tasu >= hiku && tasu >= kake) {
    cout << tasu << endl;
  }
  else if (hiku >= kake && hiku >= tasu) {
    cout << hiku << endl;
  }
  else {
    cout << kake << endl;
  }
}

#include <bits/stdc++.h>
#define INF 5000000000000000000
#define ll long long
#define pll pair<ll, ll>
using namespace std;

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