using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Baekjoon
{
class Program
{
static void Main(string[] args)
{
// 테스트 케이스 개수 입력받기
int x = int.Parse(Console.ReadLine());
// 테스트 케이스 개수만큼 더하기
for (int i=0; i < x; i++)
{
string [] s = Console.ReadLine().Split();
int a = int.Parse(s[0]);
int b = int.Parse(s[1]);
Console.WriteLine(a + b);
}
}
}
}