n = int(input())
s = list(input() for _ in range(n))
d = {}
for i in range(n):
    if s[i] in d:
        d[s[i]] += 1
    else:
        d[s[i]] = 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 s = list(input() for _ in range(n)) s list(input() for _ in range(n)) list input() input d = {} d {} for i in range(n):
    if s[i] in d:
        d[s[i]] += 1
    else:
        d[s[i]] = 1 i range(n) range n if s[i] in d:
        d[s[i]] += 1
    else:
        d[s[i]] = 1 s[i] in d s[i] s i d d[s[i]] += 1 d[s[i]] d s[i] s i 1 d[s[i]] = 1 d[s[i]] d s[i] s i 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 d = {} {} d n = int(input()) int(input()) n s = list(input() for _ in range(n)) list(input() for _ in range(n)) s m = max(d.values()) max(d.values()) m
n = int(input())
s = list(input() for _ in range(n))
d = {}
for i in range(n):
    if s[i] in d:
        d[s[i]] += 1
    else:
        d[s[i]] = 1
m = max(d.values())
for s in sorted(k for k in d if d[k] == m):
    print(s)