https://www.acmicpc.net/problem/10951
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main{
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
StringBuilder sb = new StringBuilder();
StringTokenizer st;
String str="";
while( (str = br.readLine()) != null ) {
st = new StringTokenizer(str, " ");
if(st.hasMoreTokens()){
int a = Integer.parseInt(st.nextToken());
int b = Integer.parseInt(st.nextToken());
sb.append(a+b).append("\n");
}else{
break;
}
}
br.close();
System.out.println(sb);
} catch (Exception e) {
e.printStackTrace();
}
}
}