N = int(input()) res = [] for i in range(N): a = input().split() res.append(int(a[0])+int(a[1])) for i in res: print(i)