import java.io.*;
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
static Scanner cin = new Scanner(System.in);
static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
public static void main(String[] args) throws IOException{
int T=cin.nextInt();
while(T-->0)
{
BigInteger a=cin.nextBigInteger();
BigInteger b=cin.nextBigInteger();
bw.write(a.add(b)+"n");
}
bw.flush();
}
}



