#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)
    {
        if(add>=mm)
        {
            cout<<add<<endl;
        }
        else
        {
            cout<<mm<<endl;
        }
    }
    else if(app>=add)
    {
        if(app>=mm)
        {
            cout<<app<<endl;
        }
        else
        {
            cout<<mm<<endl;
        }
    }
        else if(mm>=add)
        {
            if(mm>=app)
            {
                cout<<mm<<endl;

            }
            else
            {
                cout<<app<<endl;
            }
        }
        return 0;


    }


