print@{(@a=sort{@$a-@$b}map[sort/./g],split)[s/-|(\S)(.*?)(\S*\1\S*)/$3$2/g&&redo]},$",@{pop@a},$/for<>
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page