#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(0);
  int t, a, b;
  cin >> t;
  for (int i = 0; i < t; ++i) {
    cin >> a >> b;
    cout << a + b << "\n";
  }
}
