#include <bits/stdc++.h>
using namespace std;
const int INF = INT_MAX;
const unsigned long long int MOD = 10e8 + 7;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  std::cout.precision(30);
  int t;
  cin >> t;
  while (t--) {
    int a, b;
    cin >> a >> b;
    cout << a + b << "\n";
  }
  return 0;
}
