#include <iostream>
using namespace std;
int main(void)
{
cin.tie(NULL);
ios::sync_with_stdio(false);
int T;
cin >> T;
for (int i = 0; i < T; i++)
{
int A, B;
cin >> A >> B;
cout << A + B << '\n';
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKHZvaWQpCnsKICAgIGNpbi50aWUoTlVMTCk7CiAgICBpb3M6OnN5bmNfd2l0aF9zdGRpbyhmYWxzZSk7CiAgICBpbnQgVDsKICAgIGNpbiA+PiBUOwoKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgVDsgaSsrKQogICAgewogICAgICAgIGludCBBLCBCOwogICAgICAgIGNpbiA+PiBBID4+IEI7CiAgICAgICAgY291dCA8PCBBICsgQiA8PCAnXG4nOwogICAgfQoKICAgIHJldHVybiAwOwp9