#include <iostream>
using namespace std;
int main(){
    int A,B;
    cin>>A;
    cin>>B;
    int sum,multi,subtract;
    sum=A+B;
    multi=A*B;
    subtract=A-B;
    if(sum>=multi && sum>=subtract){cout<<sum;}
    else if (multi>=sum && multi>=subtract ){cout<<multi;}
    else if(subtract>=multi && subtract>=sum){cout<<subtract;}
    return 0;}
