s=io.read"*a"for i=0,122 do c=s.char(i)_,n=s:gsub(c:match"%w"or 0,c)_=n>0 and print(c..s.format(":%3d",n))end