#include<iostream>
#include<string>
using
namespace
std;
int
main(){
a, b;
while
(cin>>a>>b && !(a == 0 && b == 0)){
cout<<a + b<<endl;
}