#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,m,o,a,b;
    cin >> a >> b;
    n=a+b;
    m=a-b;
    o=a*b;
    if(n>=m && n>=o){
        cout << n << endl;
    }
    else if(m>=n && m>=o){
        cout << m << endl;
    }
    else{
        cout << o << endl;
    }
}