t = int(input())

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