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