• + 8 comments

    He dont need to add Ordereddict class

    """"""""

    from collections import Counter
    
    class OrderedCounter(Counter):
        pass
    
    [print(*c) for c in OrderedCounter(sorted(input())).most_common(3)]
    

    """"""""