#include <iostream>
using namespace std;
#define maxsize 100
typedef int elemtype;
typedef struct ptnode
{
	elemtype data;
	int parents;
}ptnode;
typedef struct
{
	ptnode nodes[maxsize];
	int x;
	int n;
}ptree;