#include <bits/stdc++.h>
using namespace std;

int main(){
    int a,b;
    cin>>a>>b;
    int add=a+b;
    int sub=a-b;
    int mul=a*b;
    int res=max(max(add,sub),mul);
    cout<<res<<endl;
    return 0;
}
