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