def add(a,b): return a+b ncase=int(raw_input()) for i in range(ncase): a=raw_input() s=eval(a) print s