N = int(input())

d = {}
for _ in range(N):
    S = input()
    if S in d:
        d[S] += 1
    else:
        d[S] = 1

m = max(d.values())
for s in sorted(k for k in d if d[k] == m):
    print(s) N = int(input()) N int(input()) int input() input d = {} d {} for _ in range(N):
    S = input()
    if S in d:
        d[S] += 1
    else:
        d[S] = 1 _ range(N) range N S = input() S input() input if S in d:
        d[S] += 1
    else:
        d[S] = 1 S in d S d d[S] += 1 d[S] d S 1 d[S] = 1 d[S] d S 1 m = max(d.values()) m max(d.values()) max d.values() d.values d values for s in sorted(k for k in d if d[k] == m):
    print(s) s sorted(k for k in d if d[k] == m) sorted k print(s) print s m = max(d.values()) max(d.values()) m N = int(input()) int(input()) N S = input() input() S d = {} {} d
N = int(input())

d = {}
for _ in range(N):
    S = input()
    if S in d:
        d[S] += 1
    else:
        d[S] = 1

m = max(d.values())
for s in sorted(k for k in d if d[k] == m):
    print(s)