// #2825
// This should get AC if global initialization is correctly implemented ...
#include <stdio.h>
inline int getint() {
int x = 0;
char c = getchar();
while (c <= 32) c = getchar();
int f = 1;
if (c == '-') f = -1, c = getchar();
while (c > 32) x = x * 10 + c - 48, c = getchar();
return x * f;
}
template <class T>
inline void _putint(T x) {
return x ? _putint(x / 10), putchar(48 + x % 10), void() : void();
}
template <class T>
inline void putint(T x) {
if (x < 0) return putchar('-'), putint(-x), void();
return x == 0 ? putchar('0'), void() : _putint(x), void();
}
int n = getint();
int main() {
while (n--) {
int a = getint();
int b = getint();
putint(a + b);
putchar('\n');
}
return 0;
}