#include <bits/stdc++.h>
int main() {
  if (int t = 1)
    if (int a = 1)
      if (int b = 1)
        if (scanf("%d", &t))
          while (t--)
            if (scanf("%d %d", &a, &b))
              if (printf("%d\n", a + b)) {
              }
}
