var n=readInt while(n>=0){println(n);n-=(1+"0"*(Math.log(n)/2.4).toInt).toInt}