#include <bits/stdc++.h>
using namespace std;
int a, b;

int main(){
	cin >> a >> b;

	int mx = INT_MIN;

	mx = max(mx, a + b);
	mx = max(mx, a * b);
	mx = max(mx, a - b);

	cout << mx << endl;

	return 0;
}
