key=list(input())
dict1={}
for i in key:
    dict1[i]=0
for i in key:
    dict1[i]=dict1[i]+1
print(dict1)