#include #include #include int main(void){ int i,count=1; int origin[100],rule[100],before[100],after[100]; for(i=0;i<100;i++){ origin[i]=i; rule[i]=i; before[i]=i; } int n,k,x,y,tmp; scanf("%d%d",&n,&k); for(i=0;i