N = int(input())
S = [input() for _ in range(N)]
c = {}

for s in S:
    if c.get(s):
        c[s] += 1
    else:
        c[s] = 1


s_items = sorted(c.items(), key=lambda x: x[1], reverse=True)
n_max = s_items[0][1]

print('\n'.join(sorted(map(lambda x: x[0], filter(lambda x: x[1] == n_max, s_items))))) 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)] c = {} c {} for s in S:
    if c.get(s):
        c[s] += 1
    else:
        c[s] = 1 s S if c.get(s):
        c[s] += 1
    else:
        c[s] = 1 c.get(s) c.get c get s c[s] += 1 c[s] c s 1 c[s] = 1 c[s] c s 1 s_items = sorted(c.items(), key=lambda x: x[1], reverse=True) s_items sorted(c.items(), key=lambda x: x[1], reverse=True) sorted c.items() c.items c items key=lambda x: x[1] key lambda x: x[1] x[1] x 1 x reverse=True reverse True n_max = s_items[0][1] n_max s_items[0][1] [0] s_items 0 1 print('\n'.join(sorted(map(lambda x: x[0], filter(lambda x: x[1] == n_max, s_items))))) print '\n'.join(sorted(map(lambda x: x[0], filter(lambda x: x[1] == n_max, s_items)))) '\n'.join '\n' join sorted(map(lambda x: x[0], filter(lambda x: x[1] == n_max, s_items))) sorted map(lambda x: x[0], filter(lambda x: x[1] == n_max, s_items)) map lambda x: x[0] x[0] x 0 x filter(lambda x: x[1] == n_max, s_items) filter lambda x: x[1] == n_max x[1] == n_max x[1] x 1 n_max x s_items s_items = sorted(c.items(), key=lambda x: x[1], reverse=True) sorted(c.items(), key=lambda x: x[1], reverse=True) s_items N = int(input()) int(input()) N c = {} {} c n_max = s_items[0][1] s_items[0][1] n_max S = [input() for _ in range(N)] [input() for _ in range(N)] S
N = int(input())
S = [input() for _ in range(N)]
c = {}

for s in S:
    if c.get(s):
        c[s] += 1
    else:
        c[s] = 1


s_items = sorted(c.items(), key=lambda x: x[1], reverse=True)
n_max = s_items[0][1]

print('\n'.join(sorted(map(lambda x: x[0], filter(lambda x: x[1] == n_max, s_items)))))