while 1: \x09a=`input()`;p=0;s="" \x09for c in sorted(a):i=a.find(c);i+=i>=p;s+="><"[i<p]+`abs(p-i)`;p=i \x09print s
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page