a=input("Enter the string")
print(a)
mylist=[]
for b in a:
	if b not in mylist:
		mylist.append(c)
for c in mylist:
	print(b," ",a.count(b),end=' ')
print()