#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,x,y,z;
    cin>>a>>b;
    x=a+b;
    y=a-b;
    z=a*b;
    if(x>=y && x>=z)
    {
        cout<<x<<endl;
    }
    else if(y>=x && y>=z)
    {
        cout<<y<<endl;
    }
    else
    {
        cout<<z<<endl;
    }
    return 0;
}

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

int main() {
  int a,b;
  cin>>a>>b;
  int x=a+b,y=a-b,z=a*b;
  int A=max(x,max(y,z));
  cout<<A<<endl;
}