N = int(input())
S = [input() for i in range(N)]

dict = {}

for s in S :
    dict.setdefault(s, 0)
    dict[s] += 1

max_value =  max(dict.values())
ans = sorted([ k for k,v in dict.items() if v == max_value])

for a in ans :
    print(a) N = int(input()) N int(input()) int input() input input() for i in range(N) for i in range(N) i range(N) range N for i in range(N) input() input S = [input() for i in range(N)] S [input() for i in range(N)] dict = {} dict {} for s in S :
    dict.setdefault(s, 0)
    dict[s] += 1 s S dict.setdefault(s, 0) dict.setdefault dict setdefault s 0 dict[s] += 1 dict[s] dict s 1 max_value =  max(dict.values()) max_value max(dict.values()) max dict.values() dict.values dict values k for k,v in dict.items() if v == max_value for k,v in dict.items() if v == max_value k v dict.items() dict.items dict items v == max_value v max_value if v == max_value k ans = sorted([ k for k,v in dict.items() if v == max_value]) ans sorted([ k for k,v in dict.items() if v == max_value]) sorted [ k for k,v in dict.items() if v == max_value] for a in ans :
    print(a) a ans print(a) print a S = [input() for i in range(N)] [input() for i in range(N)] S ans = sorted([ k for k,v in dict.items() if v == max_value]) sorted([ k for k,v in dict.items() if v == max_value]) ans max_value =  max(dict.values()) max(dict.values()) max_value dict = {} {} dict N = int(input()) int(input()) N
N = int(input())
S = [input() for i in range(N)]

dict = {}

for s in S :
    dict.setdefault(s, 0)
    dict[s] += 1

max_value =  max(dict.values())
ans = sorted([ k for k,v in dict.items() if v == max_value])

for a in ans :
    print(a)