#include int main(){ int inDegree[65540]={0}; int node, destroy; scanf("%d %d",&node,&destroy); for(int i=0;i1){ printf("1\n"); } else if(to==0) { printf("1\n"); } else{ printf("0\n"); } } return 0; }