#include<stdio.h>


typedef struct node{  
  int me;
  int parent;
  int right;
  int left;
  
} tree1;
  
int a[1000][1000];

int main(){



  
  int number;
  scanf("%d",&number);
  
  tree1  A[100000];


  int i,j;

  int n;




  
  for(i=0;i<number;i++){
    scanf("%d%d",&A[i].me,&n);


    
    for(j=0;j<n;j++){
      scanf("%d",&a[i][j]);
    }
  }


  
  return 0;
}

