import java.io.*;
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));
while(true) {
String[] STR = br.readLine().split(" ");
int a = Integer.parseInt(STR[0]);
int b = Integer.parseInt(STR[1]);
if (a == 0 && b ==0){
bw.flush();
bw.close();
return;
}
bw.write(String.valueOf(a+b));
bw.newLine();
}
}
}