my_str=input()
my_dict={}
my_list=[]
for i in my_str:
    my_list.append(i)
for j in my_list:
    my_dict[j]=my_list.count(j)
print(my_dict)