count down by theman

i=input()
a=b=0
s=["0"]
while a<i:s+=[str(a+1)];a+=10**(b/9);b+=1
print "\n".join(s[::-1])

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return top