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