import sys
n = int(input())
for line in sys.stdin:
    a,b = map(int,line.split())
    print(a+b)