#include <bits/stdc++.h>
const long long inf = 1e18;
const long long mod2 = 1e9 + 7;
using namespace std;
void print(vector<long long>& v) {
  for (auto it : v) cout << it << " ";
  cout << "\n";
}
signed main() {
  long long n;
  cin >> n;
  while (n--) {
    long long a, b;
    cin >> a >> b;
    cout << a + b << endl;
  }
}
