#include<stdio.h>
int main(){

    int a,b,x,y,z;
    scanf("%d %d",&a,&b);
    x=a+b;
    y=a-b;
    z=a*b;
    if((x>y)&&(x>z))
        printf("%d\n",x);
    else if((y>z))
        printf("%d\n",y);
    else
        printf("%d\n",z);

return 0;
}