var s:string;i,k:word;begin read(s);repeat i:=i+1;k:=pos(s[i],copy(s,i+1));if k>0then writeln(s[i],": ",k)until 0>0end.