#include using namespace std; typedef long long ll; typedef vector VI; #define REP(i, n) for(int(i)=0;(i)<(n);++(i)) #define in(T,V) T V;cin>>V; const int MOD = int(1e9+7); char getop(string::const_iterator &it){ if(*it == '-' || *it == '+'){ return *it++; } return '+'; } int getnum(string::const_iterator &it){ int n = 0; while(isdigit(*it)){ char c = *it++; n = n * 10 + (c - '0'); } return n; } int main(){ in(string,s); auto it = s.cbegin(); auto op1 = getop(it); auto num1 = getnum(it); auto op = getop(it); auto op2 = getop(it); auto num2 = getnum(it); if(op1 == '-') num1 = -num1; if(op2 == '-') num2 = -num2; if(op == '+') num2 = -num2; cout << num1 + num2 << endl; }