for(i in $=readline())if(I=$.lastIndexOf(c=$[i])-i)print(c+":",I)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page