#include<iostream>
#include<string.h>
#include<algorithm>
using namespace std;
int get_max(int a, int b){
	if(a > b)
		return a;
	return b;
}
int main(){
	int a, b;
	while(~scanf("%d %d", &a, &b)){
		int c1 = a + b;
		int c2 = a - b;
		int c3 = a * b;
		int c4 = get_max(c1, c2);
		int c5 = get_max(c4, c3);
		printf("%d\n", c5);
	}
return 0;
}