import java.util.Scanner;
/*
输入描述:
输入包括两个正整数a,b(1 <= a, b <= 10^9),输入数据有多组, 如果输入为0 0则结束输入
输出描述:
输出a+b的结果
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
while(a != 0 && b != 0) {
System.out.println(a + b);
a = sc.nextInt();
b = sc.nextInt();
}
}
}