main(i,v){char*s=gets(v),c=*s;while(i=*++s)while(i&&putchar(c)-*s)i=*s-(c+=c<*s?1:-1);puts(s-1);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page