n = int(input())
s_l = [ input() for _ in range(n) ]

d = {}
for s in s_l:
    try:
        d[s] += 1
    except:
        d[s] = 1

max_c = max([ v for _,v in d.items() ])
ans = [ i for i, v in d.items() if v == max_c ]

for i in sorted(ans):
    print(i) 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_l = [ input() for _ in range(n) ] s_l [ input() for _ in range(n) ] d = {} d {} for s in s_l:
    try:
        d[s] += 1
    except:
        d[s] = 1 s s_l try:
        d[s] += 1
    except:
        d[s] = 1 except:
        d[s] = 1 d[s] = 1 d[s] d s 1 d[s] += 1 d[s] d s 1 v for _,v in d.items() for _,v in d.items() _ v d.items() d.items d items for _,v in d.items() v max_c = max([ v for _,v in d.items() ]) max_c max([ v for _,v in d.items() ]) max [ v for _,v in d.items() ] i for i, v in d.items() if v == max_c for i, v in d.items() if v == max_c i v d.items() d.items d items v == max_c v max_c if v == max_c i ans = [ i for i, v in d.items() if v == max_c ] ans [ i for i, v in d.items() if v == max_c ] for i in sorted(ans):
    print(i) i sorted(ans) sorted ans print(i) print i d = {} {} d n = int(input()) int(input()) n max_c = max([ v for _,v in d.items() ]) max([ v for _,v in d.items() ]) max_c s_l = [ input() for _ in range(n) ] [ input() for _ in range(n) ] s_l ans = [ i for i, v in d.items() if v == max_c ] [ i for i, v in d.items() if v == max_c ] ans
n = int(input())
s_l = [ input() for _ in range(n) ]

d = {}
for s in s_l:
    try:
        d[s] += 1
    except:
        d[s] = 1

max_c = max([ v for _,v in d.items() ])
ans = [ i for i, v in d.items() if v == max_c ]

for i in sorted(ans):
    print(i)