count down by _N

p i=gets.to_i\x0d
d="#{i-1}".split //\x0d
while n=d.shift\x0d
n.to_i.downto(1){|j|p j*10**d.size}\x0d
end\x0d
p 0

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

download

return top