<gh_stars>0
if __name__ == "__main__":
    run = input()

    for _ in range(int(run)):
        a, b = map(int, input().split())
        print(a+b)



if __name__ == "__main__":
    run = input()

    for _ in range(int(run)):
        a, b = map(int, input().split())
        print(a+b)