def frequency(string):
    string = string.split().strip()
    strlist = []
    
    for i in string:
        strlist.append(i)

    freq = []
    dict = {}

    for i in strlist:
        for i not in freq:
            freq.append(i)
            c = strlist.count(i)
            key.dict = i
            value.dict = c
            c = 0

    print(dict)

__init__main():
    frequency(input())