N = int(input())
d = {}
for _ in range(N):
    w = input().strip()
    if w in d:
        d[w] += 1
    else:
        d[w] = 1
m = max(d.values())
r = []
for k, v in d.items():
    if v == m:
        r.append(k)
for w in sorted(r):
    print(w) N = int(input()) N int(input()) int input() input d = {} d {} for _ in range(N):
    w = input().strip()
    if w in d:
        d[w] += 1
    else:
        d[w] = 1 _ range(N) range N w = input().strip() w input().strip() ().strip () input strip if w in d:
        d[w] += 1
    else:
        d[w] = 1 w in d w d d[w] += 1 d[w] d w 1 d[w] = 1 d[w] d w 1 m = max(d.values()) m max(d.values()) max d.values() d.values d values r = [] r [] for k, v in d.items():
    if v == m:
        r.append(k) k v d.items() d.items d items if v == m:
        r.append(k) v == m v m r.append(k) r.append r append k for w in sorted(r):
    print(w) w sorted(r) sorted r print(w) print w w = input().strip() input().strip() w N = int(input()) int(input()) N d = {} {} d m = max(d.values()) max(d.values()) m r = [] [] r
N = int(input())
d = {}
for _ in range(N):
    w = input().strip()
    if w in d:
        d[w] += 1
    else:
        d[w] = 1
m = max(d.values())
r = []
for k, v in d.items():
    if v == m:
        r.append(k)
for w in sorted(r):
    print(w)
