a = int(input())

for i in range(a):
    b, c = input().split()
    print(int(b)+int(c))

"""
list = []
for i in range(a):
    b, c = input().split()
    list.append([int(b), int(c)])
    print(list)
"""