# -*- coding: utf-8 -*-
"""
Created on Mon Mar 15 10:09:01 2021

@author: raj patil
"""
#t is no. of test case
t = int(input())
for i in range(t):
    a,b = map(int, input().split())
    #adding a and b
    print(a+b)