#include <bits/stdc++.h>
using namespace std;
#define int long long
int re() {
int ret = 0, f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') f = (ch == '-') ? -f : f, ch = getchar();
while (ch >= '0' && ch <= '9') ret = ret * 10 + ch - '0', ch = getchar();
return ret * f;
}
signed main() {
int n = re();
for (int i = 1; i <= n; ++i) {
int a = re(), b = re();
printf("%lld\n", a + b);
}
return 0;
}