#include <iostream>
#include <algorithm>
 
int A, B, X ;


int main()
{
	int A;
	std::cin >> A;
	int B;
	std::cin >> B;
	X = A * B;
	X = std::max(X, A - B);
	X = std::max(X, A + B);
	std::cout << X;
}