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