n = int(input())

dic = {}

for x in range(n):
    a = input()
    dic.setdefault(a,0)
    dic[a] += 1

dic2 = sorted(dic.items(),key=lambda x:x[1],reverse=True)

max_word = [k for k,v in dic2 if v == dic2[0][1] ]

max_word.sort()

for x in max_word:
    print(x) n = int(input()) n int(input()) int input() input dic = {} dic {} for x in range(n):
    a = input()
    dic.setdefault(a,0)
    dic[a] += 1 x range(n) range n a = input() a input() input dic.setdefault(a,0) dic.setdefault dic setdefault a 0 dic[a] += 1 dic[a] dic a 1 dic2 = sorted(dic.items(),key=lambda x:x[1],reverse=True) dic2 sorted(dic.items(),key=lambda x:x[1],reverse=True) sorted dic.items() dic.items dic items key=lambda x:x[1] key lambda x:x[1] x[1] x 1 x reverse=True reverse True k for k,v in dic2 if v == dic2[0][1] for k,v in dic2 if v == dic2[0][1] k v dic2 v == dic2[0][1] v dic2[0][1] [0] dic2 0 1 if v == dic2[0][1] k max_word = [k for k,v in dic2 if v == dic2[0][1] ] max_word [k for k,v in dic2 if v == dic2[0][1] ] max_word.sort() max_word.sort max_word sort for x in max_word:
    print(x) x max_word print(x) print x max_word = [k for k,v in dic2 if v == dic2[0][1] ] [k for k,v in dic2 if v == dic2[0][1] ] max_word dic2 = sorted(dic.items(),key=lambda x:x[1],reverse=True) sorted(dic.items(),key=lambda x:x[1],reverse=True) dic2 a = input() input() a dic = {} {} dic n = int(input()) int(input()) n
n = int(input())

dic = {}

for x in range(n):
    a = input()
    dic.setdefault(a,0)
    dic[a] += 1

dic2 = sorted(dic.items(),key=lambda x:x[1],reverse=True)

max_word = [k for k,v in dic2 if v == dic2[0][1] ]

max_word.sort()

for x in max_word:
    print(x)
