#include <bits/stdc++.h>
int main(int argc, char *argv[]) {
  int x;
  scanf("%d", &x);
  for (int i = 0; i < x; ++i) {
    int a, b;
    scanf("%d %d", &a, &b);
    printf("%d\n", a + b);
  }
  return 0;
}
