#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <stack>
#include <deque>
#include <queue>
#include <cstring>
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;

#define pi acos(-1)

const int maxn = 1000000 + 5;

int main()
{
    int a, b;

    cin >> a >> b;

    int c;

    c = max(a + b, max(a - b, a * b));

    cout << c << endl;

    return 0;
}
