#include <iostream>
#include <vector>
#include <cstdlib>  
#include <algorithm>
#include <string>

using namespace std;
 
int main() {
    int a,b,sa; 
    cin>>a>>b;
    sa = max(a+b,a-b);
    sa = max(a*b,sa);
    cout<<sa;
    return 0;
}
//Radhe Radhe
#include<bits/stdc++.h>
#define ll long long
#define fast_io ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define mod 1000000007
using namespace std;

int main()
{
    fast_io
    ll i,a,b,c,d,j,k;
    cin>>a>>b>>c;


    cout<<max(a+b,max(a*b,a-b));

    return 0;
}



