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

d = {}
for si in s:
    if si not in d:
        d[si] = 0
    d[si] += 1

s_list = list(sorted(list(d.keys())))
value = max(d.values())
for si in s_list:
    if d[si] == value:
        print(si) 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 si in s:
    if si not in d:
        d[si] = 0
    d[si] += 1 si s if si not in d:
        d[si] = 0
     si not in d si d d[si] = 0 d[si] d si 0 d[si] += 1 d[si] d si 1 s_list = list(sorted(list(d.keys()))) s_list list(sorted(list(d.keys()))) list sorted(list(d.keys())) sorted list(d.keys()) list d.keys() d.keys d keys value = max(d.values()) value max(d.values()) max d.values() d.values d values for si in s_list:
    if d[si] == value:
        print(si) si s_list if d[si] == value:
        print(si) d[si] == value d[si] d si value print(si) print si s_list = list(sorted(list(d.keys()))) list(sorted(list(d.keys()))) s_list n = int(input()) int(input()) n d = {} {} d s = [input() for _ in range(n)] [input() for _ in range(n)] s value = max(d.values()) max(d.values()) value
n = int(input())
s = [input() for _ in range(n)]

d = {}
for si in s:
    if si not in d:
        d[si] = 0
    d[si] += 1

s_list = list(sorted(list(d.keys())))
value = max(d.values())
for si in s_list:
    if d[si] == value:
        print(si)
