n = int(input())
dic = {}
for i in range(n):
    s = str(input())
    if s in dic.keys():
        dic[s] += 1
    else:
        dic.setdefault(s,1)
max_v = max(dic.values())
ans = []
for j in dic.items():
    if j[1] == max_v:
        ans.append(j[0])
ans.sort()
for i in ans:
    print(i) n = int(input()) n int(input()) int input() input dic = {} dic {} for i in range(n):
    s = str(input())
    if s in dic.keys():
        dic[s] += 1
    else:
        dic.setdefault(s,1) i range(n) range n s = str(input()) s str(input()) str input() input if s in dic.keys():
        dic[s] += 1
    else:
        dic.setdefault(s,1) s in dic.keys() s dic.keys() dic.keys dic keys dic[s] += 1 dic[s] dic s 1 dic.setdefault(s,1) dic.setdefault dic setdefault s 1 max_v = max(dic.values()) max_v max(dic.values()) max dic.values() dic.values dic values ans = [] ans [] for j in dic.items():
    if j[1] == max_v:
        ans.append(j[0]) j dic.items() dic.items dic items if j[1] == max_v:
        ans.append(j[0]) j[1] == max_v j[1] j 1 max_v ans.append(j[0]) ans.append ans append j[0] j 0 ans.sort() ans.sort ans sort for i in ans:
    print(i) i ans print(i) print i max_v = max(dic.values()) max(dic.values()) max_v n = int(input()) int(input()) n ans = [] [] ans s = str(input()) str(input()) s dic = {} {} dic
n = int(input())
dic = {}
for i in range(n):
    s = str(input())
    if s in dic.keys():
        dic[s] += 1
    else:
        dic.setdefault(s,1)
max_v = max(dic.values())
ans = []
for j in dic.items():
    if j[1] == max_v:
        ans.append(j[0])
ans.sort()
for i in ans:
    print(i)
