n=int(raw_input()) a=[] for i in range(0, n): a.append(raw_input().strip())
for i in range(0, n): l,m=[int(x) for x in a[i].split()] print l+m