for(real i,p=1e4,n=stdin;++i<98;p=p%n*10)write(p/n-p%n/n,none);