i = long(raw_input())\x0d while i >= 0:\x0d k = str(i).count('0')\x0d \x0d if str(i)[0] == '1':\x0d k -= 1\x0d \x0d j = long('1' + '0' * k)\x0d print i \x0d i -= j\x0d
Note that non-ascii characters in the above source code will be escaped (such as \x9f).