#include <iostream>
using namespace std;
int main() {
char str[100] = { 0 };
cin.getline(str, sizeof(str));
// write your code here......
string _str[3];
string temp = "";
for (int i = 0, j = 0; i < sizeof(str) && j < 3; i++) {
if (str[i] != ' ' && str[i] != '\0') {
temp += str[i];
} else if (!temp.empty()) {
_str[j] = temp;
temp = "";
j++;
}
}
string symbol = "";
for (char c : _str[0]) {
symbol += tolower(c);
}
int num1 = stoi(_str[1]);
int num2 = stoi(_str[2]);
if (symbol == "add") {
cout << num1 + num2;
} else if (symbol == "sub") {
cout << num1 - num2;
} else if (symbol == "mul") {
cout << num1* num2;
} else if (symbol == "div" && num2 != 0) {
cout << num1 / num2;
} else {
cout << "Error";
}
return 0;
}