import List;f c@[a,b]=c;f c=' ':c;main=interact$unlines.map(\x->head x:": "++f(show$length x)).tail.group.sort