#include<iostream>
using namespace std;
int main(){
int a,b,i=1,n;
cin>>n;
while(i<=n&&cin>>a>>b){
cout<<a+b<<endl;
i++;
}
return 0;
}
#include<iostream>
using namespace std;
int main(){
int a,b,i=1,n;
cin>>n;
while(i<=n&&cin>>a>>b){
cout<<a+b<<endl;
i++;
}
return 0;
}