#include
int main(int argc, char *argv[])
{
int a, b, sum;
char opt;
scanf("%d", &a);
sum = a;
scanf("%c", &opt);
int iErr = 1;
while (opt != '=') {
scanf("%d", &b);
if (opt == '+')
sum += b;
else if (opt == '-')
sum -= b;
else if (opt == '*')
sum *= b;
else if (opt == '/') {
if (b == 0) {
iErr = 0;
break;
} else {
sum /= b;
}
} else {
iErr = 0;
break;
}
scanf("%c", &opt);
}
if (!iErr)
printf("ERROR\n");
else
printf("%d\n", sum);
return 0;
}