#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, t;
  cin >> t;
  int value[t];
  for (int i = 1; i <= t; i++) {
    cin >> a;
    cin >> b;
    value[i] = a + b;
  }
  for (int i = 1; i <= t; i++) {
    cout << value[i] << endl;
  }
}
