#include <bits/stdc++.h>
using namespace std;
const int INF = 190000000;
const int MOD = 1e9 + 7;
int main() {
  int tc;
  cin >> tc;
  while (tc--) {
    int a, b;
    cin >> a >> b;
    cout << a + b << endl;
  }
}
