#include<iostream>
using namespace std;
int main()
{
    int a,b,app,add,mm;
    cin>>a>>b;
    add=a+b;
    app=a-b;
    mm=a*b;
    if(add>=app && add>=mm){
        cout<<add<<endl;
    }
    else if(app>=add && app>=mm )
    {
        cout<<app<<endl;

    }
    else if(mm>=add && mm>=app)
        {
           cout<<mm<<endl;

        }
        return 0;


    }


