#include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
	int a,b,c,d,e,t;
	scanf("%d %d",&a,&b);
	c=a+b;
	d=a-b;
	e=(a)*(b);
	t=c>(d>e?d:e)?c:(d>e?d:e);
	printf("%d\n",t);
	return 0;
}