Move To Front Encode by leonid

a='0123456789'
for x in raw_input():a=x+a.replace(x,'',1)+`a.find(x)`
print a[10:]

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

download

return top