text: // idea: TODO
  
  #include <iostream>
  //#include <algorithm>
  //#include <string>
  //#include <set>
  //#include <vector>
  //#include <map>
  //#include <queue>
  //#include <cmath>
  
  using namespace std;
  
  int main() {
  	int N; // for problems beginning with a number saying how many cases (common)
  	cin >> N;
  	while (N--) {
  		int n,m; // some other variables, per line
  		cin >> n >> m; // read
  		int x = m + n;// calculate stuff
  		cout << x << endl; // output formatted result, line per case
  	}
  	return 0;
  }
  