def inverse(d):
    inverse = dict()
    for key in d:
        val = d[key]

        if val not in inverse:
            inverse[val] = [key]

        else:
            inverse[val].append(key)

        return inverse

word = input("ENTER WORD: ")

temp = dict()

for i in word:
    if i not in temp:
        temp[i] = 1

    else:
        temp[i] += 1

k = inverse(temp)

0a9d8e468f1c181e8f82c1eb804b2be36eae5e2d
<mask token>

def inverse(d):
    inverse = dict()
    for key in d:
        val = d[key]
        if val not in inverse:
            inverse[val] = [key]
        else:
            inverse[val].append(key)
        return inverse


<mask token>

def inverse(d):
    inverse = dict()
    for key in d:
        val = d[key]
        if val not in inverse:
            inverse[val] = [key]
        else:
            inverse[val].append(key)
        return inverse


<mask token>
for i in word:
    if i not in temp:
        temp[i] = 1
    else:
        temp[i] += 1
<mask token>

def inverse(d):
    inverse = dict()
    for key in d:
        val = d[key]
        if val not in inverse:
            inverse[val] = [key]
        else:
            inverse[val].append(key)
        return inverse


word = input('ENTER WORD: ')
temp = dict()
for i in word:
    if i not in temp:
        temp[i] = 1
    else:
        temp[i] += 1
k = inverse(temp)

def inverse(d):
    inverse = dict()
    for key in d:
        val = d[key]

        if val not in inverse:
            inverse[val] = [key]

        else:
            inverse[val].append(key)

        return inverse

word = input("ENTER WORD: ")

temp = dict()

for i in word:
    if i not in temp:
        temp[i] = 1

    else:
        temp[i] += 1

k = inverse(temp)
