N=int(input())
S=[input() for i in range(N)]
L=dict()
for i in range(N):
  if S[i] in L:
    L[S[i]]+=1
  else:
    L[S[i]]=1
M=max(L.values())
ans=list()
for X in L:
  if L[X]==M:
    ans.append(X)
ans.sort()
for X in ans:
  print(X) N=int(input()) N int(input()) int input() input 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)] L=dict() L dict() dict for i in range(N):
  if S[i] in L:
    L[S[i]]+=1
  else:
    L[S[i]]=1 i range(N) range N if S[i] in L:
    L[S[i]]+=1
  else:
    L[S[i]]=1 S[i] in L S[i] S i L L[S[i]]+=1 L[S[i]] L S[i] S i 1 L[S[i]]=1 L[S[i]] L S[i] S i 1 M=max(L.values()) M max(L.values()) max L.values() L.values L values ans=list() ans list() list for X in L:
  if L[X]==M:
    ans.append(X) X L if L[X]==M:
    ans.append(X) L[X]==M L[X] L X M ans.append(X) ans.append ans append X ans.sort() ans.sort ans sort for X in ans:
  print(X) X ans print(X) print X M=max(L.values()) max(L.values()) M S=[input() for i in range(N)] [input() for i in range(N)] S L=dict() dict() L ans=list() list() ans N=int(input()) int(input()) N
N=int(input())
S=[input() for i in range(N)]
L=dict()
for i in range(N):
  if S[i] in L:
    L[S[i]]+=1
  else:
    L[S[i]]=1
M=max(L.values())
ans=list()
for X in L:
  if L[X]==M:
    ans.append(X)
ans.sort()
for X in ans:
  print(X)
