#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, c = 0, b;
  vector<int> B, A;
  cin >> n;
  while (n--) {
    cin >> a;
    for (int i = 0; i < a; i++) {
      cin >> b;
      A.push_back(b);
    }
    int x = a;
  }
  return 0;
}
