main=interact(\s->unlines[l:": "++[' '|n<10]++show n|l<-['A'..'z'],n<-[sum[1|c<-s,c==l]],n>0])