import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
try {
int cnt = Integer.parseInt(br.readLine());
for(int i=0;i<cnt;i++) {
String str = br.readLine();
String[] nums = str.split(" ");
int sum = Integer.parseInt(nums[0]) + Integer.parseInt(nums[1]);
bw.write(sum+"\n");
}
bw.flush();
bw.close();
br.close();
} catch (NumberFormatException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}