N = int(input())
d = {}
for i in range(N):
  s = input()
  if s in d.keys():
    d[s] += 1
  else:
    d[s] = 1
mx = 0
for i in d.values():
  mx = max(mx, i)
for i in sorted(d.items()):
  if i[1] == mx:
    print(i[0]) N = int(input()) N int(input()) int input() input d = {} d {} for i in range(N):
  s = input()
  if s in d.keys():
    d[s] += 1
  else:
    d[s] = 1 i range(N) range N s = input() s input() input if s in d.keys():
    d[s] += 1
  else:
    d[s] = 1 s in d.keys() s d.keys() d.keys d keys d[s] += 1 d[s] d s 1 d[s] = 1 d[s] d s 1 mx = 0 mx 0 for i in d.values():
  mx = max(mx, i) i d.values() d.values d values mx = max(mx, i) mx max(mx, i) max mx i for i in sorted(d.items()):
  if i[1] == mx:
    print(i[0]) i sorted(d.items()) sorted d.items() d.items d items if i[1] == mx:
    print(i[0]) i[1] == mx i[1] i 1 mx print(i[0]) print i[0] i 0 d = {} {} d s = input() input() s mx = max(mx, i) max(mx, i) mx N = int(input()) int(input()) N mx = 0 0 mx
N = int(input())
d = {}
for i in range(N):
  s = input()
  if s in d.keys():
    d[s] += 1
  else:
    d[s] = 1
mx = 0
for i in d.values():
  mx = max(mx, i)
for i in sorted(d.items()):
  if i[1] == mx:
    print(i[0])