#include<stdio.h>
#include<string.h>
#include<math.h>
#include<algorithm>
using namespace std;
int main()
{
	int a, b, res1, res2, res3;
	scanf("%d%d", &a, &b);
	res1 = a+b;
	res2 = a-b;
	res3 = a*b;
	int max;
	if (res1 > res2)max = res1;
	else max = res2;
	if (max < res3) max = res3;
	printf("%d\n", max);
    return 0;
}