s = input("Enter a string")
n = str(s).count
dict = {}
l = []
for i in range[int1]:
    if (s[i] in dict{}):
        l[i] = l[i] + 1
        dict.append(s[i]:l[i])
    else:
        l[i] = 1
        dict.append(s[i]:l[i])

print(dict)