# 读取数据组数 T
T = int(input())

# 循环 T 次,处理每组数据
for _ in range(T):
    a, b = map(int, input().split())
    print(a + b)