#include <cstdio>
static int sta[11];
inline int read() {
int res = 0, fl = 1; char cha = getchar();
while ((cha < '0' || cha > '9') && cha != '-') cha = getchar();
if (cha == '-') fl = -1, cha = getchar();
while (cha >= '0' && cha <='9') res = res * 10 + cha - '0', cha = getchar();
return res * fl;
}
inline void write(int x) {
if(x < 0) {
x = -x;
putchar('-');
}
int top = 0;
do {
sta[top++] = x % 10;
x /= 10;
} while (x);
while (top) putchar(sta[--top] + 48);
}
int main() {
int n, a, b;
n = read();
while (n--){
a = read();
b = read();
write(a + b);
putchar('\n');
}
return 0;
}