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

