#include <iostream>
using namespace std;
signed main() {
int a, b;
cin >> a >> b;
if (a == b)
cout << a + b << endl;
else if (a > b)
cout << a - b << endl;
else
cout << a * b << endl;
return 0;
}
#include <iostream>
using namespace std;
signed main() {
int a, b;
cin >> a >> b;
if (a == b)
cout << a + b << endl;
else if (a > b)
cout << a - b << endl;
else
cout << a * b << endl;
return 0;
}