var n:word;begin read(n);repeat writeln(n);n:=n-10pow trunc(Ln(n)/2.4)until 1=0end.