#include #include #include int main(void) { char buf[7], s[14], b; int i, j, op, x, y; scanf("%s", s); for(i = 1; s[i] != '+' && s[i] != '-'; i++); for(j = 0; i > j; j++){ buf[j] = s[j]; } buf[j] = '\0'; x = atoi(buf); op = s[i]; for(j = 0; j + i+1 < strlen(s); j++){ buf[j] = s[j+i+1]; } buf[j] = '\0'; y = atoi(buf); printf("%d\n",op == '+' ? x - y : x + y); return 0; }