#include int main(void){ int pos=0, mul; int sumA, sumB; int symbol; char op, s[20]; scanf("%s", s); symbol = 1; if(s[pos] == '-'){ symbol = -1; pos++; }else if(s[pos] == '+'){ pos++; } mul = 0; for( ; '0'<=s[pos] && s[pos]<='9';pos++){ mul = mul * 10 + (int)(s[pos]-'0'); } sumA = symbol * mul; op = s[pos]; pos++; symbol = 1; if(s[pos] == '-'){ symbol = -1; pos++; }else if(s[pos] == '+'){ pos++; } mul = 0; for(; '0'<=s[pos] && s[pos]<='9';pos++){ mul = mul * 10 + (int)(s[pos]-'0'); } sumB = symbol * mul; if( op == '+'){ printf("%d\n", sumA-sumB); }else{ printf("%d\n", sumA+sumB); } return 0; }