N = int(input())

S = [input() for _ in range(N)]

d = {}
for s in S:
    if s in d:
        d[s] += 1
    else:
        d[s] = 1

maxcount = max([d[k] for k in d])
maxlist = list(filter(lambda x: d[x] == maxcount, d))
maxlist = sorted(maxlist)
for m in maxlist:
    print(m) 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 s in S:
    if s in d:
        d[s] += 1
    else:
        d[s] = 1 s S 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 d[k] for k in d for k in d k d for k in d d[k] d k maxcount = max([d[k] for k in d]) maxcount max([d[k] for k in d]) max [d[k] for k in d] maxlist = list(filter(lambda x: d[x] == maxcount, d)) maxlist list(filter(lambda x: d[x] == maxcount, d)) list filter(lambda x: d[x] == maxcount, d) filter lambda x: d[x] == maxcount d[x] == maxcount d[x] d x maxcount x d maxlist = sorted(maxlist) maxlist sorted(maxlist) sorted maxlist for m in maxlist:
    print(m) m maxlist print(m) print m N = int(input()) int(input()) N d = {} {} d maxcount = max([d[k] for k in d]) max([d[k] for k in d]) maxcount maxlist = list(filter(lambda x: d[x] == maxcount, d)) list(filter(lambda x: d[x] == maxcount, d)) maxlist S = [input() for _ in range(N)] [input() for _ in range(N)] S maxlist = sorted(maxlist) sorted(maxlist) maxlist
N = int(input())

S = [input() for _ in range(N)]

d = {}
for s in S:
    if s in d:
        d[s] += 1
    else:
        d[s] = 1

maxcount = max([d[k] for k in d])
maxlist = list(filter(lambda x: d[x] == maxcount, d))
maxlist = sorted(maxlist)
for m in maxlist:
    print(m)