#include using namespace std; int main() { string e; cin >> e; int pos_op; for (int i = 1; i < e.size(); ++i) { if (isdigit(e[i - 1]) && !isdigit(e[i])) { pos_op = i; break; } } char op = e[pos_op]; string x = e.substr(0, pos_op); string y = e.substr(pos_op + 1, e.size() - pos_op - 1); cout << stoi(x) + (op == '+' ? -1 : 1) * stoi(y) << endl; }