n=input();l='';b=n%10 while n:a=n%10;l=`range(a,b,1-2*(b<a))or[b]`[1::3]+l;b=a;n/=10 print l
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page