#include<stdio.h>
int main()
{
    int A,B,MAX,a,b,c;
    scanf("%d %d",&A,&B);
    a=A+B;
    b=A-B;
    c=A*B;
    if(a>b)
        {
            if(a>c)
                MAX=a;
            else
                MAX=c;
        }
     else
     {
         if(b>c)
            MAX=b;
         else
            MAX=c;
     }
    printf("%d",MAX);
    return 0;
}