#include <bits/stdc++.h>
using namespace std;
const long long INF = 2000000000000000000LL;
const int inf = 0x3f3f3f3f;
const long double EPS = 1e-9;
const long long MOD = 1e9 + 7;
template <class T>
inline T gcd(T a, T b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  int test;
  cin >> test;
  while (test--) {
    int a, b;
    cin >> a >> b;
    cout << a + b << endl;
  }
  return 0;
}
