#include <bits/stdc++.h>
using namespace std;
long long int power(long long int A, long long int B) {
  long long int C = 1000000007;
  if (A == 0) return 0;
  if (B == 0) return 1;
  long long int y;
  if (B % 2 == 0) {
    y = power(A, B / 2);
    y = (y * y) % C;
  } else {
    y = A % C;
    y = (y * power(A, B - 1) % C) % C;
  }
  return (long long int)((y + C) % C);
}
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int a, b;
    cin >> a >> b;
    cout << a + b << endl;
  }
}
