#include int calc(char *s){ int i; int num = 0; int sum =0; char symbol = '+'; for(i=0;;i++){ if( '0'<= s[i] && s[i] <= '9'){ num *= 10; num += (s[i] - '0'); }else{ if(symbol == '+'){ sum += num; }else{ sum -= num; } num = 0; symbol = s[i]; } if(s[i] == '\0'){break;} } return sum; } int main(void){ int i,n; int ans = -20000000; char s[15]; scanf("%s", s); for(n=0;s[n]!=0;n++); for(i=0;i