#include <stdio.h>
int main(){
int L, R;
while(scanf("%d %d", &L, &R)){
if(!L && !R) break;
printf("%d\n", L + R);
}
return 0;
}
#include <iostream>
using namespace std;
int main(){
int L, R;
while(cin >> L >> R){
if(!L && !R) break;
cout << L + R << endl;
}
return 0;
}
var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var lines = input.split('\n');
while(lines.length){
let [L, R] = lines.shift().trim().split(" ").map((x) => parseInt(x));
if(!L && !R) break;
console.log(L + R);
}
while True:
try:
L, R = [int(x) for x in input().strip().split(' ')]
if(L == 0 and R == 0):
break
print(L + R)
except EOFError:
break