str1 = '+ - * / ) ( 0 1 2 3 4 5 6 7 8 9'
while True:
try:
#获取输入数据
x1 = input()
#设置标签检测数据合法性
flag = 0
if len(x1) > 100:
flag = 1
for word in x1:
if word not in str1:
flag = 1
break
x2 = eval(x1)
#判断是否为整形运算
if x2 != int(x2):
flag = 1
#如果输入数据不合法则跳出循环
if flag == 1:
break
print(int(eval(x1)))
except:
break