#include <iostream>
using namespace std;
int main(){
int T; cin>>T;
while(T--){
int a,b;
cin>>a>>b;
cout<<a+b<<endl;
}
}
using namespace std; int main() {
int n;
int a, b;
int arr[100];
cin >> n;
for (int i=1;i<=n;i++)
{
cin >> a >> b;
arr[i] = a + b;
}
for (int i = 1; i <= n; i++)
{
cout << arr[i] << " " << endl;
}
}