The Captain's Room

  • + 0 comments

    from collections import Counter

    n =int(input())

    dict_rooms = Counter(input().split(" "))

    cpt_room = dict_rooms.most_common()[::-1]

    print(cpt_room[0][0])