N=int(input())
d=dict()
for _ in range(N):
    S=input()
    if S not in d:
        d[S]=0
    d[S]+=1
M=max(d.values())
ans=[]
for S in d.keys():
    if d[S]==M:
        ans.append(S)
ans.sort()
for S in ans:
    print(S) N=int(input()) N int(input()) int input() input d=dict() d dict() dict for _ in range(N):
    S=input()
    if S not in d:
        d[S]=0
    d[S]+=1 _ range(N) range N S=input() S input() input if S not in d:
        d[S]=0
     S not in d S d d[S]=0 d[S] d S 0 d[S]+=1 d[S] d S 1 M=max(d.values()) M max(d.values()) max d.values() d.values d values ans=[] ans [] for S in d.keys():
    if d[S]==M:
        ans.append(S) S d.keys() d.keys d keys if d[S]==M:
        ans.append(S) d[S]==M d[S] d S M ans.append(S) ans.append ans append S ans.sort() ans.sort ans sort for S in ans:
    print(S) S ans print(S) print S ans=[] [] ans N=int(input()) int(input()) N S=input() input() S M=max(d.values()) max(d.values()) M d=dict() dict() d
N=int(input())
d=dict()
for _ in range(N):
    S=input()
    if S not in d:
        d[S]=0
    d[S]+=1
M=max(d.values())
ans=[]
for S in d.keys():
    if d[S]==M:
        ans.append(S)
ans.sort()
for S in ans:
    print(S)
