n=int(input())
dic={}
cnt=1
s=[input() for i in range(n)]
for i in s:
    if i in dic:
        dic[i]+=1
        cnt=max(cnt,dic[i])
    else:
        dic[i]=1
ans=[]
for i in s:
    if dic[i]==cnt:
        ans.append(i)
ans=list(set(ans))
ans.sort()
for i in ans:
    print(i) n=int(input()) n int(input()) int input() input dic={} dic {} cnt=1 cnt 1 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)] for i in s:
    if i in dic:
        dic[i]+=1
        cnt=max(cnt,dic[i])
    else:
        dic[i]=1 i s if i in dic:
        dic[i]+=1
        cnt=max(cnt,dic[i])
    else:
        dic[i]=1 i in dic i dic dic[i]+=1 dic[i] dic i 1 cnt=max(cnt,dic[i]) cnt max(cnt,dic[i]) max cnt dic[i] dic i dic[i]=1 dic[i] dic i 1 ans=[] ans [] for i in s:
    if dic[i]==cnt:
        ans.append(i) i s if dic[i]==cnt:
        ans.append(i) dic[i]==cnt dic[i] dic i cnt ans.append(i) ans.append ans append i ans=list(set(ans)) ans list(set(ans)) list set(ans) set ans ans.sort() ans.sort ans sort for i in ans:
    print(i) i ans print(i) print i cnt=max(cnt,dic[i]) max(cnt,dic[i]) cnt s=[input() for i in range(n)] [input() for i in range(n)] s dic={} {} dic n=int(input()) int(input()) n ans=[] [] ans ans=list(set(ans)) list(set(ans)) ans cnt=1 1 cnt
n=int(input())
dic={}
cnt=1
s=[input() for i in range(n)]
for i in s:
    if i in dic:
        dic[i]+=1
        cnt=max(cnt,dic[i])
    else:
        dic[i]=1
ans=[]
for i in s:
    if dic[i]==cnt:
        ans.append(i)
ans=list(set(ans))
ans.sort()
for i in ans:
    print(i)
