# boj https://www.acmicpc.net/problem/10950
# test_case = input()
# test_case = int(test_case)

# for num in range(0, test_case):
#    a, b = input().split()
#    sum = int(a) + int(b)
#    print(sum)


T=int(input())
for i in range(T):
    string=input()
    A,B=string.split()
    A=int(A)
    B=int(B)
    print(A+B)

