#include <stdio.h>
#define R register
inline int read()
{
R char ch;R bool sign=1;
while(((ch=getchar_unlocked())<48||ch>57)&&ch!='-');R int in=(ch=='-'?sign=0:ch^48);
while((ch=getchar_unlocked())>47&&ch<58)in=(in<<1)+(in<<3)+(ch^48);
return sign?in:-in;
}
int main()
{
R int n=read();
for(;n--;)
printf("%d\n",read()+read());
return 0;
}