import sys

str1=input()
dict1={}
for i in str1:
    if i not in dict1:
        dict1[i]=1
    else:
        dict1[i]=dict1[i]+1
print(dict1)