#include<bits/stdc++.h>
using namespace std;  
int main(){           
    string s1;
    cin>>s1;
    int i,t = s1[0] - 48;
	for(i = 1;i < s1.length();i = i + 2)
	{
		if(s1[i] == '+'){
			t = t + s1[i + 1] - 48;
		}else if(s1[i] == '-'){
			t = t - (s1[i + 1] - 48);
		}else if(s1[i] == '*'){
			t = t * (s1[i + 1] - 48);
		}
	}
	cout<<t<<endl;
	return 0;
}
/**************************************************************
	Problem: 1122
	User: admin
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2076 kb
****************************************************************/