#include <iostream>
#include <vector>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cout.tie(NULL);
cin.tie(NULL);
int t;
cin >> t;
vector<int>a(t);
vector<int>b(t);
for (int i = 0; i < t; i++) {
cin >> a[i];
cin >> b[i];
}
for (int i = 0; i < t; i++) {
cout << a[i] + b[i] << "\n";
}
return 0;
}