#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b;
    cin >> a>>b;
    int res1=a+b;
    int res2=a-b;
    int res3=a*b;
    int x=max(res1,res2);
    int y=max(x,res3);
    cout<<y <<endl;
}
