main(d,p)char*p;{for(gets(p);*p;)printf("%c: %d\n"-!d,*p++,d=rindex(p,*p)-p);}