import java.util.Scanner;
public class Main {
public static void main(String[] rgs){
//系统输出的
Scanner in=new Scanner(System.in);
int n=-1;
int a = 0;
n=in.nextInt();
int[] sum=new int[n];
for(int i=0;i<n;i++){
a = in.nextInt();
b = in.nextInt();
sum[i]=a+b;
}
for (int s : sum) {
System.out.println(s);
}
}
}
public class Main {
public static void main(String[] rgs){
//系统输出的
Scanner in=new Scanner(System.in);
int n=-1;
int a = 0;
int b = 0;
//不明白,为什么这里必须使用in.hasNextInt()作为判断值,如果其他的判断值,一定是wrong
while(in.hasNextInt()){n=in.nextInt();
int[] sum=new int[n];
for(int i=0;i<n;i++){
a = in.nextInt();
b = in.nextInt();
sum[i]=a+b;
}
for (int s : sum) {
System.out.println(s);
}
}
}
}
import java.util.Scanner;
public class Main {
public static void main(String[] rgs){
//系统输出的
Scanner in=new Scanner(System.in);
int n=-1;
int a = 0;
int b = 0;
while(in.hasNextInt()){
n=in.nextInt();
int[] sum=new int[n];
for(int i=0;i<n;i++){
a = in.nextInt();
b = in.nextInt();
sum[i]=a+b;
}
for (int s : sum) {
System.out.println(s);
}
}
}
}