#include <cstdio>
#include <cstdlib>
int main() {
static char buf[1 << 26], *p = buf;
fread(buf, 1, 1 << 26, stdin);
int n = strtol(p, &p, 10);
for (int i = 1; i <= n; ++i) {
int a = strtol(p, &p, 10);
int b = strtol(p, &p, 10);
printf("%d\n", a + b);
}
}