N = int(input())
S = [input() for i in range(N)]
d = {}
m = 0
for i in S:
    if i in d:
        d[i] += 1
        if d[i] > m:
            m = d[i]
    else:
        d[i] = 1
        
d = dict(sorted(d.items(), reverse=True))
a = {}
for i in d.keys():
    if m <= d[i]:
        a[i] = 0
a = sorted(a)
for i in a:
    print(i) N = int(input()) N int(input()) int input() input input() for i in range(N) for i in range(N) i range(N) range N for i in range(N) input() input S = [input() for i in range(N)] S [input() for i in range(N)] d = {} d {} m = 0 m 0 for i in S:
    if i in d:
        d[i] += 1
        if d[i] > m:
            m = d[i]
    else:
        d[i] = 1
         i S if i in d:
        d[i] += 1
        if d[i] > m:
            m = d[i]
    else:
        d[i] = 1
         i in d i d d[i] += 1 d[i] d i 1 if d[i] > m:
            m = d[i]
     d[i] > m d[i] d i m m = d[i] m d[i] d i d[i] = 1 d[i] d i 1 d = dict(sorted(d.items(), reverse=True)) d dict(sorted(d.items(), reverse=True)) dict sorted(d.items(), reverse=True) sorted d.items() d.items d items reverse=True reverse True a = {} a {} for i in d.keys():
    if m <= d[i]:
        a[i] = 0 i d.keys() d.keys d keys if m <= d[i]:
        a[i] = 0 m <= d[i] m d[i] d i a[i] = 0 a[i] a i 0 a = sorted(a) a sorted(a) sorted a for i in a:
    print(i) i a print(i) print i d = {} {} d m = d[i] d[i] m N = int(input()) int(input()) N d = dict(sorted(d.items(), reverse=True)) dict(sorted(d.items(), reverse=True)) d a = {} {} a a = sorted(a) sorted(a) a S = [input() for i in range(N)] [input() for i in range(N)] S m = 0 0 m
N = int(input())
S = [input() for i in range(N)]
d = {}
m = 0
for i in S:
    if i in d:
        d[i] += 1
        if d[i] > m:
            m = d[i]
    else:
        d[i] = 1
        
d = dict(sorted(d.items(), reverse=True))
a = {}
for i in d.keys():
    if m <= d[i]:
        a[i] = 0
a = sorted(a)
for i in a:
    print(i)