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