#include<bits/stdc++.h>
#define f(i,l,r) for(register int i=l;i<=r;++i)
#define F(i,r,l) for(register int i=r;i>=l;--i)
#define LL long long
#define ULL unsigned long long
using namespace std;
inline int read(){
int x=0,ty=1;
char c=getchar();
while(!isdigit(c)){
if(c=='-')
ty=-1;
c=getchar();
}
while(isdigit(c))
x=10*x+c-'0',c=getchar();
return x;
}
int main(){
for(int n=read();n--;)
printf("%d",read()+read());
return 0;
}