n=int(input())
s=[str(input()) for _ in range(n)]
import collections
cnt=collections.Counter(s)
cntt=cnt.most_common()
maxn=cntt[0][1]
ansl=[]
for c in cntt:
  if c[1]==maxn:
    ansl.append(c[0])
  else:
    break
ansl.sort()
for i in ansl:
  print(i) n=int(input()) n int(input()) int input() input str(input()) for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) str(input()) str input() input s=[str(input()) for _ in range(n)] s [str(input()) for _ in range(n)] import collections collections cnt=collections.Counter(s) cnt collections.Counter(s) collections.Counter collections Counter s cntt=cnt.most_common() cntt cnt.most_common() cnt.most_common cnt most_common maxn=cntt[0][1] maxn cntt[0][1] [0] cntt 0 1 ansl=[] ansl [] for c in cntt:
  if c[1]==maxn:
    ansl.append(c[0])
  else:
    break c cntt if c[1]==maxn:
    ansl.append(c[0])
  else:
    break c[1]==maxn c[1] c 1 maxn ansl.append(c[0]) ansl.append ansl append c[0] c 0 break ansl.sort() ansl.sort ansl sort for i in ansl:
  print(i) i ansl print(i) print i ansl=[] [] ansl s=[str(input()) for _ in range(n)] [str(input()) for _ in range(n)] s cntt=cnt.most_common() cnt.most_common() cntt cnt=collections.Counter(s) collections.Counter(s) cnt maxn=cntt[0][1] cntt[0][1] maxn n=int(input()) int(input()) n
n=int(input())
s=[str(input()) for _ in range(n)]
import collections
cnt=collections.Counter(s)
cntt=cnt.most_common()
maxn=cntt[0][1]
ansl=[]
for c in cntt:
  if c[1]==maxn:
    ansl.append(c[0])
  else:
    break
ansl.sort()
for i in ansl:
  print(i)