#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int tcase;
  cin >> tcase;
  while (tcase--) {
    int a, b;
    cin >> a >> b;
    cout << a + b << "\n";
  }
  return 0;
}
