N = int(input())
index = {}

for _ in range(N):
  S = input()
  if S not in index: index[S] = 1
  else: index[S] += 1

max_cnt = max(index.values())

ls = [key for key in index.keys() if index[key] == max_cnt]

ls.sort()
for ans in ls:
  print(ans) N = int(input()) N int(input()) int input() input index = {} index {} for _ in range(N):
  S = input()
  if S not in index: index[S] = 1
  else: index[S] += 1 _ range(N) range N S = input() S input() input if S not in index: index[S] = 1
  else: index[S] += 1 S not in index S index max_cnt = max(index.values()) max_cnt max(index.values()) max index.values() index.values index values key for key in index.keys() if index[key] == max_cnt for key in index.keys() if index[key] == max_cnt key index.keys() index.keys index keys index[key] == max_cnt index[key] index key max_cnt if index[key] == max_cnt key ls = [key for key in index.keys() if index[key] == max_cnt] ls [key for key in index.keys() if index[key] == max_cnt] ls.sort() ls.sort ls sort for ans in ls:
  print(ans) ans ls print(ans) print ans N = int(input()) int(input()) N max_cnt = max(index.values()) max(index.values()) max_cnt index = {} {} index ls = [key for key in index.keys() if index[key] == max_cnt] [key for key in index.keys() if index[key] == max_cnt] ls S = input() input() S
N = int(input())
index = {}

for _ in range(N):
  S = input()
  if S not in index: index[S] = 1
  else: index[S] += 1

max_cnt = max(index.values())

ls = [key for key in index.keys() if index[key] == max_cnt]

ls.sort()
for ans in ls:
  print(ans)