#include<iostream>
#include<stdio.h>
#include<string.h>
#include<math.h>
using namespace std;
int main()
{
char a;
int first,x,b;
int sum=0;
scanf("%d",&first);
sum+=first;
for(;a!='=';)
{
scanf("%c",&a);
switch(a)
{
case'=':printf("%d",sum);break;
case'+':scanf("%d",&b);sum+=b;break;
case'-':scanf("%d",&b);sum-=b;break;
case'*':scanf("%d",&b);sum*=b;break;
case'/':scanf("%d",&b);sum/=b;break;
}
}
return 0;
}