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