#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b;
    cin>>a>>b;
    int sum,cnt,p;
    sum=a+b;
    cnt=a-b;
    p=a*b;
    int mx=max(sum,cnt);
    mx=max(mx,p);
    cout<<mx<<endl;
    return 0;
}

