count = int(input())
for _ in range(count):
    a, b = [int(each) for each in input().split(" ")]
    print(a + b)

count = int(input())
for _ in range(count):
    a, b = [int(each) for each in input().split(" ")]
    print(a + b)
