#include <iostream>
using namespace std;
int main(void)
{
int A, B;
while (1)
{
cin >> A >> B;
if (A == 0 && B == 0)
break;
cout << A + B << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKHZvaWQpCnsKICAgIGludCBBLCBCOwoKICAgIHdoaWxlICgxKQogICAgewogICAgICAgIGNpbiA+PiBBID4+IEI7CgogICAgICAgIGlmIChBID09IDAgJiYgQiA9PSAwKQogICAgICAgICAgICBicmVhazsKICAgICAgICAKICAgICAgICBjb3V0IDw8IEEgKyBCIDw8IGVuZGw7CiAgICB9CiAgICByZXR1cm4gMDsKfQ==