"""
    AUTHOR - Atharva Deshpande
    GITHUB PROFILE  -  https://github.com/AtharvaD11
    QUESTION LINK  -  https://www.codechef.com/problems/FLOW001
    
"""

****************************************

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