n = int(input())
s = [input() for _ in range(n)]
d = {}
for w in s:
    if w not in d:
        d[w] = 0
    d[w] += 1
d2 = sorted(d.items(), key=lambda x:x[1], reverse=True)
maxcnts = [w[0] for w in d2 if w[1] == d2[0][1]]
maxcnts.sort()
for ans in maxcnts:
    print(ans) n = int(input()) n int(input()) int input() input input() for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) input() input s = [input() for _ in range(n)] s [input() for _ in range(n)] d = {} d {} for w in s:
    if w not in d:
        d[w] = 0
    d[w] += 1 w s if w not in d:
        d[w] = 0
     w not in d w d d[w] = 0 d[w] d w 0 d[w] += 1 d[w] d w 1 d2 = sorted(d.items(), key=lambda x:x[1], reverse=True) d2 sorted(d.items(), key=lambda x:x[1], reverse=True) sorted d.items() d.items d items key=lambda x:x[1] key lambda x:x[1] x[1] x 1 x reverse=True reverse True w[0] for w in d2 if w[1] == d2[0][1] for w in d2 if w[1] == d2[0][1] w d2 w[1] == d2[0][1] w[1] w 1 d2[0][1] [0] d2 0 1 if w[1] == d2[0][1] w[0] w 0 maxcnts = [w[0] for w in d2 if w[1] == d2[0][1]] maxcnts [w[0] for w in d2 if w[1] == d2[0][1]] maxcnts.sort() maxcnts.sort maxcnts sort for ans in maxcnts:
    print(ans) ans maxcnts print(ans) print ans s = [input() for _ in range(n)] [input() for _ in range(n)] s d2 = sorted(d.items(), key=lambda x:x[1], reverse=True) sorted(d.items(), key=lambda x:x[1], reverse=True) d2 d = {} {} d maxcnts = [w[0] for w in d2 if w[1] == d2[0][1]] [w[0] for w in d2 if w[1] == d2[0][1]] maxcnts n = int(input()) int(input()) n
n = int(input())
s = [input() for _ in range(n)]
d = {}
for w in s:
    if w not in d:
        d[w] = 0
    d[w] += 1
d2 = sorted(d.items(), key=lambda x:x[1], reverse=True)
maxcnts = [w[0] for w in d2 if w[1] == d2[0][1]]
maxcnts.sort()
for ans in maxcnts:
    print(ans)