N = int(input())
hashmap = {}
Array = [[] for _ in range(N+1)]
for _ in range(N):
  st = input()
  if st not in hashmap:
    hashmap[st] = 0
  hashmap[st]+=1
max_num = max(hashmap.values())
tup = []
for k,v in hashmap.items():
  if v == max_num:
    tup.append(k)
tup.sort()
for i in tup:
  print(i) N = int(input()) N int(input()) int input() input hashmap = {} hashmap {} [] for _ in range(N+1) for _ in range(N+1) _ range(N+1) range N+1 N 1 for _ in range(N+1) [] Array = [[] for _ in range(N+1)] Array [[] for _ in range(N+1)] for _ in range(N):
  st = input()
  if st not in hashmap:
    hashmap[st] = 0
  hashmap[st]+=1 _ range(N) range N st = input() st input() input if st not in hashmap:
    hashmap[st] = 0
   st not in hashmap st hashmap hashmap[st] = 0 hashmap[st] hashmap st 0 hashmap[st]+=1 hashmap[st] hashmap st 1 max_num = max(hashmap.values()) max_num max(hashmap.values()) max hashmap.values() hashmap.values hashmap values tup = [] tup [] for k,v in hashmap.items():
  if v == max_num:
    tup.append(k) k v hashmap.items() hashmap.items hashmap items if v == max_num:
    tup.append(k) v == max_num v max_num tup.append(k) tup.append tup append k tup.sort() tup.sort tup sort for i in tup:
  print(i) i tup print(i) print i Array = [[] for _ in range(N+1)] [[] for _ in range(N+1)] Array tup = [] [] tup N = int(input()) int(input()) N hashmap = {} {} hashmap st = input() input() st max_num = max(hashmap.values()) max(hashmap.values()) max_num
N = int(input())
hashmap = {}
Array = [[] for _ in range(N+1)]
for _ in range(N):
  st = input()
  if st not in hashmap:
    hashmap[st] = 0
  hashmap[st]+=1
max_num = max(hashmap.values())
tup = []
for k,v in hashmap.items():
  if v == max_num:
    tup.append(k)
tup.sort()
for i in tup:
  print(i)