#include <bits/stdc++.h>
using namespace std;
vector<long long> v;
long long ans;
long long mod(int x) {
  if (x < 0)
    return (-x);
  else
    return (x);
}
int ceil(int a, int b) {
  if (a % b == 0)
    return (a / b);
  else
    return (a / b + 1);
}
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long sq(int x) { return 1ll * x * x; }
void print(vector<pair<int, pair<long long, long long>>> ans) {
  int l = ans.size();
  cout << l << "\n";
  for (int i = 0; i < l; ++i) {
    cout << ans[i].first << " " << ans[i].second.first << " "
         << ans[i].second.second << "\n";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    int a, b;
    cin >> a >> b;
    cout << (a + b) << "\n";
  }
  return (0);
}
