#include <stdio.h>
int get_int() {
int s = 0;
int flag = 0;
int c = getchar();
while ((c < '0' || c > '9') && c != '-') {
c = getchar();
}
if (c == '-') {
flag = 1;
c = getchar();
}
while (c >= '0' && c <= '9') {
s = s * 10 + c - '0';
c = getchar();
}
return flag ? -s : s;
}
int main() {
int n = get_int();
for (int i = 1; i <= n; i++) {
int shu1 = get_int();
int shu2 = get_int();
printf("%d\n", shu1 + shu2);
}
return 0;
}