a,b,n;main(){for(printf("Gray code n=%d",a=getchar()-48);puts(""),n<1<>b--&1);}