n= int(input())
l={}
a=0

for i in range(n):
  s=input()
  if s in l:
    l[s]+=1
  else:
    l[s]=1
  if a<l[s]:
    a=l[s]
  
ans=[]
for i in l.keys():
  if l[i]==a:
    ans.append(i)

ans.sort()
for j in ans:
  print(j) n= int(input()) n int(input()) int input() input l={} l {} a=0 a 0 for i in range(n):
  s=input()
  if s in l:
    l[s]+=1
  else:
    l[s]=1
  if a<l[s]:
    a=l[s]
   i range(n) range n s=input() s input() input if s in l:
    l[s]+=1
  else:
    l[s]=1
   s in l s l l[s]+=1 l[s] l s 1 l[s]=1 l[s] l s 1 if a<l[s]:
    a=l[s]
   a<l[s] a l[s] l s a=l[s] a l[s] l s ans=[] ans [] for i in l.keys():
  if l[i]==a:
    ans.append(i) i l.keys() l.keys l keys if l[i]==a:
    ans.append(i) l[i]==a l[i] l i a 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 a=0 0 a a=l[s] l[s] a s=input() input() s l={} {} l ans=[] [] ans n= int(input()) int(input()) n
n= int(input())
l={}
a=0

for i in range(n):
  s=input()
  if s in l:
    l[s]+=1
  else:
    l[s]=1
  if a<l[s]:
    a=l[s]
  
ans=[]
for i in l.keys():
  if l[i]==a:
    ans.append(i)

ans.sort()
for j in ans:
  print(j)