main(){int i=-1,j,s[9],l=atoi(gets(s));printf("Gray code n=%s",s);for(;++i<1<>1)?'1':'0');}}