#include <bits/stdc++.h>
using namespace std;
template <typename T1, typename T2>
ostream &operator<<(ostream &os, const pair<T1, T2> p) {
  os << '(' << p.first << ',' << p.second << ')';
  return os;
}
template <typename T>
ostream &operator<<(ostream &os, const vector<T> p) {
  os << "{ ";
  for (auto i : p) {
    os << i << ",";
  }
  os << "\b";
  os << "}";
  return os;
}
template <typename T1, typename T2>
istream &operator>>(istream &in, pair<T1, T2> &p) {
  in >> p.first >> p.second;
  return in;
}
void solve();
int main() {
  int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
void solve() {
  int a, b;
  cin >> a >> b;
  cout << a + b << endl;
  return;
}
