#from collections import Counter
n = int(input())
d = {}
for i in range(n):
  s = input()
  if s in d:
    d[s] += 1
  else:
    d[s] = 1

ds = sorted(d.items(), key=lambda t:(-t[1],t[0]))

m = ds[0][1]
#print(m)
ans = []
for k, v in ds:
  if v != m:
    break
  print(k) n = int(input()) n int(input()) int input() input d = {} d {} for i in range(n):
  s = input()
  if s in d:
    d[s] += 1
  else:
    d[s] = 1 i 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 ds = sorted(d.items(), key=lambda t:(-t[1],t[0])) ds sorted(d.items(), key=lambda t:(-t[1],t[0])) sorted d.items() d.items d items key=lambda t:(-t[1],t[0]) key lambda t:(-t[1],t[0]) (-t[1],t[0]) -t[1] t[1] t 1 t[0] t 0 t m = ds[0][1] m ds[0][1] [0] ds 0 1 ans = [] ans [] for k, v in ds:
  if v != m:
    break
  print(k) k v ds if v != m:
    break
   v != m v m break print(k) print k m = ds[0][1] ds[0][1] m ds = sorted(d.items(), key=lambda t:(-t[1],t[0])) sorted(d.items(), key=lambda t:(-t[1],t[0])) ds ans = [] [] ans n = int(input()) int(input()) n s = input() input() s d = {} {} d
#from collections import Counter
n = int(input())
d = {}
for i in range(n):
  s = input()
  if s in d:
    d[s] += 1
  else:
    d[s] = 1

ds = sorted(d.items(), key=lambda t:(-t[1],t[0]))

m = ds[0][1]
#print(m)
ans = []
for k, v in ds:
  if v != m:
    break
  print(k)
