#include <bits/stdc++.h>
#define P 3000
char R[P + 5], *S = R;
extern inline char get()
{
return *S ++;
}
inline int read ()
{
int p = 0, w = 1; char c = get();
while(!isdigit(c)) {if(c == '-') w = -1; c = get();}
while(isdigit(c)) {p = p * 10 + c - '0'; c = get();}
return p * w;
}
int main()
{
fread(R, 1, P, stdin);
int n, a, b;
n = read();
while(n --)
{
a = read(); b = read();
printf("%d\n",a + b);
}
return 0;
}