while True:
    try:
        a = input()
        print(eval(a)) #用python自带的eval即可计算
    except:
        break

#如果题目中带有[]{}需用replace替换为()再进行eval运算