N=int(input())
d={}
for _ in range(N):
    s=input()
    d[s]=d.get(s,0)+1

tmp=sorted(d.items(), key=lambda x: (x[0])) 
l=sorted(tmp, key=lambda x: x[1], reverse=True) 
c=l[0][1]

for s,v in l:
  if v==c: print(s)
  else: break N=int(input()) N int(input()) int input() input d={} d {} for _ in range(N):
    s=input()
    d[s]=d.get(s,0)+1 _ range(N) range N s=input() s input() input d[s]=d.get(s,0)+1 d[s] d s d.get(s,0)+1 d.get(s,0) d.get d get s 0 1 tmp=sorted(d.items(), key=lambda x: (x[0])) tmp sorted(d.items(), key=lambda x: (x[0])) sorted d.items() d.items d items key=lambda x: (x[0]) key lambda x: (x[0]) x[0] x 0 x l=sorted(tmp, key=lambda x: x[1], reverse=True) l sorted(tmp, key=lambda x: x[1], reverse=True) sorted tmp key=lambda x: x[1] key lambda x: x[1] x[1] x 1 x reverse=True reverse True c=l[0][1] c l[0][1] [0] l 0 1 for s,v in l:
  if v==c: print(s)
  else: break s v l if v==c: print(s)
  else: break v==c v c tmp=sorted(d.items(), key=lambda x: (x[0])) sorted(d.items(), key=lambda x: (x[0])) tmp s=input() input() s N=int(input()) int(input()) N l=sorted(tmp, key=lambda x: x[1], reverse=True) sorted(tmp, key=lambda x: x[1], reverse=True) l d={} {} d c=l[0][1] l[0][1] c
N=int(input())
d={}
for _ in range(N):
    s=input()
    d[s]=d.get(s,0)+1

tmp=sorted(d.items(), key=lambda x: (x[0])) 
l=sorted(tmp, key=lambda x: x[1], reverse=True) 
c=l[0][1]

for s,v in l:
  if v==c: print(s)
  else: break