#include <iostream>
using namespace std;
int main()
{
    int a, b, c, d, e, ans;
    while(cin >> a >> b)
    {
        c = a + b;
        d = a - b;
        e = a * b;

        ans = max(max(c, d), e);
        cout << ans << endl;
    }
}
