T = int(input())
for i in range(1,T+1):
    # 每行输入两个整数
    a,b = map(int,input().split())
    sum = a + b
    print(sum)
    i += 1