n = int(input())
L = list(input() for _ in range(n))
D = dict.fromkeys(set(L),0)

for l in L:
  D[l] += 1

m = max(D.values())
SD = sorted(D.items(), key=lambda x:x[0])

for k, v in SD:
  if v == m:
    print(k) n = int(input()) n int(input()) int input() input L = list(input() for _ in range(n)) L list(input() for _ in range(n)) list input() input D = dict.fromkeys(set(L),0) D dict.fromkeys(set(L),0) dict.fromkeys dict fromkeys set(L) set L 0 for l in L:
  D[l] += 1 l L D[l] += 1 D[l] D l 1 m = max(D.values()) m max(D.values()) max D.values() D.values D values SD = sorted(D.items(), key=lambda x:x[0]) SD sorted(D.items(), key=lambda x:x[0]) sorted D.items() D.items D items key=lambda x:x[0] key lambda x:x[0] x[0] x 0 x for k, v in SD:
  if v == m:
    print(k) k v SD if v == m:
    print(k) v == m v m print(k) print k D = dict.fromkeys(set(L),0) dict.fromkeys(set(L),0) D n = int(input()) int(input()) n m = max(D.values()) max(D.values()) m SD = sorted(D.items(), key=lambda x:x[0]) sorted(D.items(), key=lambda x:x[0]) SD L = list(input() for _ in range(n)) list(input() for _ in range(n)) L
n = int(input())
L = list(input() for _ in range(n))
D = dict.fromkeys(set(L),0)

for l in L:
  D[l] += 1

m = max(D.values())
SD = sorted(D.items(), key=lambda x:x[0])

for k, v in SD:
  if v == m:
    print(k)