#include <iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
#include <cmath>
using namespace std;
const int N = 1000 + 5;
int a[N];
int main()
{
  int a,b;
  while(cin >> a >> b)
  {
      int maxx = a + b;
      maxx = max(maxx,a-b);
      maxx = max(maxx,a*b);
      printf("%d\n",maxx);
  }
}
