#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int a, b;
    cin >> a >> b;
    long long c = 1000000000000000, d = 0;
    while (c--) {
      d++;
    }
    c = 1000000000000000;
    d = 0;
    while (c--) {
      d++;
    }
    c = 1000000000000000;
    d = 0;
    while (c--) {
      d++;
    }
    c = 1000000000000000;
    d = 0;
    while (c--) {
      d++;
    }
    c = 1000000000000000;
    d = 0;
    while (c--) {
      d++;
    }
    c = 1000000000000000;
    d = 0;
    while (c--) {
      d++;
    }
    cout << a + b << endl;
  }
  return 0;
}
