n = int(input())

dic = {}
ma = 1

for i in range(n):
    wo = input()
    if(wo in dic):
        dic[wo] += 1
        if(dic[wo] > ma):
            ma = dic[wo]
    else:
        dic.update({wo:1})


ans = []
for i in dic.keys():
    if(dic[i] == ma):
        ans.append(i)
ans.sort()
for j in ans:
    print(j) n = int(input()) n int(input()) int input() input dic = {} dic {} ma = 1 ma 1 for i in range(n):
    wo = input()
    if(wo in dic):
        dic[wo] += 1
        if(dic[wo] > ma):
            ma = dic[wo]
    else:
        dic.update({wo:1}) i range(n) range n wo = input() wo input() input if(wo in dic):
        dic[wo] += 1
        if(dic[wo] > ma):
            ma = dic[wo]
    else:
        dic.update({wo:1}) wo in dic wo dic dic[wo] += 1 dic[wo] dic wo 1 if(dic[wo] > ma):
            ma = dic[wo]
     dic[wo] > ma dic[wo] dic wo ma ma = dic[wo] ma dic[wo] dic wo dic.update({wo:1}) dic.update dic update {wo:1} wo wo 1 ans = [] ans [] for i in dic.keys():
    if(dic[i] == ma):
        ans.append(i) i dic.keys() dic.keys dic keys if(dic[i] == ma):
        ans.append(i) dic[i] == ma dic[i] dic i ma ans.append(i) ans.append ans append i ans.sort() ans.sort ans sort for j in ans:
    print(j) j ans print(j) print j n = int(input()) int(input()) n ans = [] [] ans wo = input() input() wo dic = {} {} dic ma = 1 1 ma ma = dic[wo] dic[wo] ma
n = int(input())

dic = {}
ma = 1

for i in range(n):
    wo = input()
    if(wo in dic):
        dic[wo] += 1
        if(dic[wo] > ma):
            ma = dic[wo]
    else:
        dic.update({wo:1})


ans = []
for i in dic.keys():
    if(dic[i] == ma):
        ans.append(i)
ans.sort()
for j in ans:
    print(j)
