N = int(input())
d = dict()
for i in range(N):
  let = input()
  if let in d:
    d[let] += 1
  else:
    d[let] = 0
max = 0
res = []
for i in d:
  if d[i]  > max:
    max = d[i]
    res =[i]
  elif d[i] == max:
    res.append(i)
for i in sorted(res):
  print(i) N = int(input()) N int(input()) int input() input d = dict() d dict() dict for i in range(N):
  let = input()
  if let in d:
    d[let] += 1
  else:
    d[let] = 0 i range(N) range N let = input() let input() input if let in d:
    d[let] += 1
  else:
    d[let] = 0 let in d let d d[let] += 1 d[let] d let 1 d[let] = 0 d[let] d let 0 max = 0 max 0 res = [] res [] for i in d:
  if d[i]  > max:
    max = d[i]
    res =[i]
  elif d[i] == max:
    res.append(i) i d if d[i]  > max:
    max = d[i]
    res =[i]
  elif d[i] == max:
    res.append(i) d[i]  > max d[i] d i max max = d[i] max d[i] d i res =[i] res [i] i elif d[i] == max:
    res.append(i) d[i] == max d[i] d i max res.append(i) res.append res append i for i in sorted(res):
  print(i) i sorted(res) sorted res print(i) print i let = input() input() let res = [] [] res res =[i] [i] res d = dict() dict() d max = 0 0 max max = d[i] d[i] max N = int(input()) int(input()) N
N = int(input())
d = dict()
for i in range(N):
  let = input()
  if let in d:
    d[let] += 1
  else:
    d[let] = 0
max = 0
res = []
for i in d:
  if d[i]  > max:
    max = d[i]
    res =[i]
  elif d[i] == max:
    res.append(i)
for i in sorted(res):
  print(i)