s = input()
a = list(s)
b = dict()
for i in a:
    if i not in b.keys():
        b[i] = s.count(i)
print(b)