https://www.acmicpc.net/problem/15552
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));
StringTokenizer st;
int t = Integer.parseInt(br.readLine());
for (int i = 0; i < t; i++){
st = new StringTokenizer(br.readLine()," "); // ๋ฌธ์์ด ๋ถ๋ฆฌ ๋ฐ ์
๋ ฅ๋ฐ๊ธฐ
bw.write((Integer.parseInt(st.nextToken()) + Integer.parseInt(st.nextToken())) + "\n");
} // String์ intํ์ผ๋ก ๋ณํ ํ ๋ํด์ค ๊ฐ์ BufferdWriter๋ก ์ถ๋ ฅ
br.close();
bw.flush(); // ๋ฒํผ ๋น์ฐ๊ธฐ
bw.close(); // ๋ฒํผ ๋ซ๊ธฐ
}
}