#include<cstdio>
using namespace std;
inline int read() {
int x = 0;
char c = getchar();
bool flag = 0;
while(c < '0' || c > '9'){
if(c == '-') flag=1;
c=getchar();
}
while(c >= '0' && c <= '9') {
x = x * 10 + c - '0';
c=getchar();
}
return flag ? -x : x;
}
int main() {
int n = read();
while(n--) {
int a = read(), b = read();
printf("%d\n", a + b);}
return 0;
}