a = int(input())
for i in range(0,2*a):
    b = list(map(int,input().split()))
    if i % 2 == 1:
        print(sum(b))