import sys kogus=int(sys.stdin.readline()) for nr in range(kogus): a, b=[int(arv) for arv in sys.stdin.readline().split(" ")] print(a+b)