def add(a,b): return a+b n=int(input()) res=[] for nn in range(n): exp=input() res.append(eval(exp)) for r in res: print(r)