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