n=int(input())
d={}
for _ in range(n):
  s=input()
  if s in d:
    d[s]+=1
  else:
    d[s]=1
m=max(d.values())
ans=[]
for i,k in d.items():
  if m==k:
    ans.append(i)
for i in sorted(ans):
  print(i) n=int(input()) n int(input()) int input() input d={} d {} for _ in range(n):
  s=input()
  if s in d:
    d[s]+=1
  else:
    d[s]=1 _ range(n) range n s=input() s input() input if s in d:
    d[s]+=1
  else:
    d[s]=1 s in d s d d[s]+=1 d[s] d s 1 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 i,k in d.items():
  if m==k:
    ans.append(i) i k d.items() d.items d items if m==k:
    ans.append(i) m==k m k ans.append(i) ans.append ans append i for i in sorted(ans):
  print(i) i sorted(ans) sorted ans print(i) print i ans=[] [] ans m=max(d.values()) max(d.values()) m s=input() input() s d={} {} d n=int(input()) int(input()) n
n=int(input())
d={}
for _ in range(n):
  s=input()
  if s in d:
    d[s]+=1
  else:
    d[s]=1
m=max(d.values())
ans=[]
for i,k in d.items():
  if m==k:
    ans.append(i)
for i in sorted(ans):
  print(i)