    printf("]\n");

    }

    return 0;

}
 
int depth(int a){

    if(tree[a].parent != -1){

        count++;

        return depth(tree[a].parent);

    }

    else
      return count;

}
 
void output(int b){
    
  if(b != -1){
    
    if(count != 0)
      printf(", ");
         
    count++;

    printf("%d", b);

    output(tree[b].right);

    }
  
}