n=scan("stdin") r=c() while(n>0){r=c(n%%2,r);n=n%/%2} cat(r,sep="")