#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 10;
vector<int> sol;
set<int> fac;
int main() {
  ios_base::sync_with_stdio, cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  while (n--) {
    int a, b;
    cin >> a >> b;
    cout << a + b << endl;
  }
}
