#include using namespace std; int main() { string s; cin >> s; int num = s.at(0) - '0'; for (int i = 2; i < s.size(); i += 2) { string formula = s.substr(i - 1,i); if (formula.at(0) == '+') num += formula.at(1) - '0'; else num *= formula.at(1) - '0'; } cout << num << endl; } //1*2+3*4*5