n = int(input())
dic1 = {}
for i in range(n):
    s = input()
    if s not in dic1.keys():
        dic1[s] = 1
    else:
        dic1[s] += 1
dic2 = sorted(dic1.items(), key=lambda j: j[1], reverse=True)

ans_ls = []
for k in range(len(dic2)):
    if dic2[k][1] != dic2[0][1]:
        break
    ans_ls.append(dic2[k][0])
ans_ls.sort()
for _ in ans_ls:
  	print(_) n = int(input()) n int(input()) int input() input dic1 = {} dic1 {} for i in range(n):
    s = input()
    if s not in dic1.keys():
        dic1[s] = 1
    else:
        dic1[s] += 1 i range(n) range n s = input() s input() input if s not in dic1.keys():
        dic1[s] = 1
    else:
        dic1[s] += 1 s not in dic1.keys() s dic1.keys() dic1.keys dic1 keys dic1[s] = 1 dic1[s] dic1 s 1 dic1[s] += 1 dic1[s] dic1 s 1 dic2 = sorted(dic1.items(), key=lambda j: j[1], reverse=True) dic2 sorted(dic1.items(), key=lambda j: j[1], reverse=True) sorted dic1.items() dic1.items dic1 items key=lambda j: j[1] key lambda j: j[1] j[1] j 1 j reverse=True reverse True ans_ls = [] ans_ls [] for k in range(len(dic2)):
    if dic2[k][1] != dic2[0][1]:
        break
    ans_ls.append(dic2[k][0]) k range(len(dic2)) range len(dic2) len dic2 if dic2[k][1] != dic2[0][1]:
        break
     dic2[k][1] != dic2[0][1] dic2[k][1] [k] dic2 k 1 dic2[0][1] [0] dic2 0 1 break ans_ls.append(dic2[k][0]) ans_ls.append ans_ls append dic2[k][0] [k] dic2 k 0 ans_ls.sort() ans_ls.sort ans_ls sort for _ in ans_ls:
  	print(_) _ ans_ls print(_) print _ ans_ls = [] [] ans_ls dic2 = sorted(dic1.items(), key=lambda j: j[1], reverse=True) sorted(dic1.items(), key=lambda j: j[1], reverse=True) dic2 s = input() input() s dic1 = {} {} dic1 n = int(input()) int(input()) n
n = int(input())
dic1 = {}
for i in range(n):
    s = input()
    if s not in dic1.keys():
        dic1[s] = 1
    else:
        dic1[s] += 1
dic2 = sorted(dic1.items(), key=lambda j: j[1], reverse=True)

ans_ls = []
for k in range(len(dic2)):
    if dic2[k][1] != dic2[0][1]:
        break
    ans_ls.append(dic2[k][0])
ans_ls.sort()
for _ in ans_ls:
  	print(_)