for(i=l=57;i++<122;n&&print(c+':',/..$/(' '+n)))for([,v]in l+=readline(n=0))v.charCodeAt()-i||(c=v)+n++