k=raw_input();l=len(k)-1;d=int(k[0]); while l>=0: while d:print d*10**l;d-=1 d=9;l-=1 print 0