S = input("enter the string:")
l = set()
for i in S:
	if i not in l:
		print(i,":",S.count(i))
		l.add(i)