#include <stdio.h>
#include <math.h>
int main()
{
int m,n,i;
scanf("%d",&i);
while ( i!=0)
{
i--;
scanf("%d %d",&m,&n);
printf("%d\n",m+n);
}
return 0;
}
#include <stdio.h>
#include <math.h>
int main()
{
int m,n,i;
scanf("%d",&i);
while ( i!=0)
{
i--;
scanf("%d %d",&m,&n);
printf("%d\n",m+n);
}
return 0;
}