#include <iostream>
#include <stdio.h>

using namespace std;

int main() {
	int a, b, sum, min, mul, most;
	cin >> a >> b;
	sum = a+b;
	min = a-b;
	mul = a*b;
	if ((sum > min) and (sum > mul)) most = sum;
	if ((min > sum) and (min > mul)) most = min;
	if ((mul > sum) and (mul > min)) most = mul;
	cout << most << endl;
}