import sys
a=input()
b=[]
c={}
for i in a:
    b.append(i)

for j in b:
    c.setdefault(j,b.count(j))

print(c)