N = int(input())
word = [str(input()) for i in range(N)]
dic = {}
for i in word:
  if i in dic:
    dic[i] += 1
  else:
    dic[i] = 1
max_num = max(dic.values())
can_word = []
for i,j in dic.items():
  if j == max_num:
    can_word.append(i)
can_word.sort()
for i in can_word:
  print(i) N = int(input()) N int(input()) int input() input str(input()) for i in range(N) for i in range(N) i range(N) range N for i in range(N) str(input()) str input() input word = [str(input()) for i in range(N)] word [str(input()) for i in range(N)] dic = {} dic {} for i in word:
  if i in dic:
    dic[i] += 1
  else:
    dic[i] = 1 i word if i in dic:
    dic[i] += 1
  else:
    dic[i] = 1 i in dic i dic dic[i] += 1 dic[i] dic i 1 dic[i] = 1 dic[i] dic i 1 max_num = max(dic.values()) max_num max(dic.values()) max dic.values() dic.values dic values can_word = [] can_word [] for i,j in dic.items():
  if j == max_num:
    can_word.append(i) i j dic.items() dic.items dic items if j == max_num:
    can_word.append(i) j == max_num j max_num can_word.append(i) can_word.append can_word append i can_word.sort() can_word.sort can_word sort for i in can_word:
  print(i) i can_word print(i) print i can_word = [] [] can_word max_num = max(dic.values()) max(dic.values()) max_num dic = {} {} dic N = int(input()) int(input()) N word = [str(input()) for i in range(N)] [str(input()) for i in range(N)] word
N = int(input())
word = [str(input()) for i in range(N)]
dic = {}
for i in word:
  if i in dic:
    dic[i] += 1
  else:
    dic[i] = 1
max_num = max(dic.values())
can_word = []
for i,j in dic.items():
  if j == max_num:
    can_word.append(i)
can_word.sort()
for i in can_word:
  print(i)