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

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