import java.io.*;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int T = Integer.parseInt(br.readLine());
StringTokenizer st;
for (int i = 0; i < T; i++) {
st = new StringTokenizer(br.readLine(), " ");
int A = Integer.parseInt(st.nextToken());
int B = Integer.parseInt(st.nextToken());
bw.write(A+B + "\n");
}
bw.flush();
bw.close();
br.close();
}
}
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args)throws IOException{
BufferdReader br = new BufferdReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferdWriter(new OutputStreamWriter(System.out));
int n= Integer.parseInt(br.readLine());
StringTokenizer st; //ํ์ค๋ก ๋ฐ๋๋ก ์กฐ๊ฑด ์ค์ ๋จ, split ์ฒ๋ผ ์ฌ์ฉ๊ฐ๋ฅ
for (int i=0; i<n; i++)
{
st = new StirngTokenizer(br.readLine(), " ");
int a= Integer.parseInt(st.nextToken());
int b= Integer.parseInt(st.nextToken());
bw.write(a+b + "\n"); //์๋๊ฐํ ๊ธฐ๋ฅ์ด ์๊ธฐ๋๋ฌธ์ ๊ฐํ ํ์
}
bw.flush(); //๋ฐ์ดํฐ ๋ชจ๋ ํ๋ฉด์ ์ถ๋ ฅ
bw.close(); //
br.close();
}
}
์๋ ์ง์ง ๋ชปํด๋จน๊ฐฏ๋ค Reader ์ด๋ Writer ๋ค์ ๋ฐฐ์ฐ๊ณ ์ค๊ฒ ์๋๋ค
#R, W ๊ฐ๋ ์ ๋ฆฌ๋ ๋ธ๋ก๊ทธ