r='';i=52 exec"r+=raw_input();"*8+"a=chr(i/26*6-~i);i+=1;print a+':%3d'%r.count(a);"*i