#include <cstdio>
#include <cstring>
#include <cmath>
#include <iomanip>
#include <limits>
#include <iostream>
#include <map>
#include <vector>
#include <queue>
#include <stack>
#include <sstream>
#include <set>
#include <algorithm>
#define     llongmax numeric_limits<long long>::max()
#define     llongmin numeric_limits<long long>::max()
#define     TEST(x) cout << "Value of "<< #x << " = " << x << endl
#define     all(x) x.begin(), x.end()
#define     pb push_back
using namespace std;
typedef long long int ll;
int main()
{
    ll a, b;
    cin >> a >> b;
    ll aa = a+b, ab = a-b, ac = a*b;
    cout << max(aa, max(ab, ac)) << endl;
}

