#include<cstdio>
#include<algorithm>
using namespace std;
int main(void)
{
	int i,a,b,m[3];
	scanf("%d %d",&a,&b);
	for(i=0;i<3;i++){
		m[0]=a+b;
		m[1]=a-b;
		m[2]=a*b;
	}
	sort(m,m+3);
	printf("%d\n",m[2]);
	return 0;
}
	
#include <iostream>


using namespace std;

int main(void) {
	int a, b;
	cin >> a >> b;
	int max = a + b;
	if (a - b > max)
		max = a - b;
	if (a*b > max)
		max = a * b;
	cout << max;
}