#include<iostream>
#include<cstdio>
#include<string.h>
#include<algorithm>
#include<cmath>
using namespace std;

int main()
{
    int a,b;
    cin>>a>>b;
    cout<<max(a+b,max(a-b,a*b));
    return 0;
}
