N = int(input())
L = []
res = []

for i in range(N):
    S = input()
    L.append(S)

L.sort()

max_cnt = 0
cnt = 0

L.append(0)

for i in range(len(L) - 1):
    if L[i] == L[i+1]:
        cnt += 1
    else:
        if cnt > max_cnt:
            max_cnt = cnt
            res = []
            res.append(L[i])
        elif cnt == max_cnt:
            res.append(L[i])
        cnt = 0

for i in res:
    print(i) N = int(input()) N int(input()) int input() input L = [] L [] res = [] res [] for i in range(N):
    S = input()
    L.append(S) i range(N) range N S = input() S input() input L.append(S) L.append L append S L.sort() L.sort L sort max_cnt = 0 max_cnt 0 cnt = 0 cnt 0 L.append(0) L.append L append 0 for i in range(len(L) - 1):
    if L[i] == L[i+1]:
        cnt += 1
    else:
        if cnt > max_cnt:
            max_cnt = cnt
            res = []
            res.append(L[i])
        elif cnt == max_cnt:
            res.append(L[i])
        cnt = 0 i range(len(L) - 1) range len(L) - 1 len(L) len L 1 if L[i] == L[i+1]:
        cnt += 1
    else:
        if cnt > max_cnt:
            max_cnt = cnt
            res = []
            res.append(L[i])
        elif cnt == max_cnt:
            res.append(L[i])
        cnt = 0 L[i] == L[i+1] L[i] L i L[i+1] L i+1 i 1 cnt += 1 cnt 1 if cnt > max_cnt:
            max_cnt = cnt
            res = []
            res.append(L[i])
        elif cnt == max_cnt:
            res.append(L[i])
         cnt > max_cnt cnt max_cnt max_cnt = cnt max_cnt cnt res = [] res [] res.append(L[i]) res.append res append L[i] L i elif cnt == max_cnt:
            res.append(L[i])
         cnt == max_cnt cnt max_cnt res.append(L[i]) res.append res append L[i] L i cnt = 0 cnt 0 for i in res:
    print(i) i res print(i) print i res = [] [] res cnt = 0 0 cnt cnt += 1 1 cnt max_cnt = cnt cnt max_cnt max_cnt = 0 0 max_cnt cnt = 0 0 cnt res = [] [] res N = int(input()) int(input()) N S = input() input() S L = [] [] L
N = int(input())
L = []
res = []

for i in range(N):
    S = input()
    L.append(S)

L.sort()

max_cnt = 0
cnt = 0

L.append(0)

for i in range(len(L) - 1):
    if L[i] == L[i+1]:
        cnt += 1
    else:
        if cnt > max_cnt:
            max_cnt = cnt
            res = []
            res.append(L[i])
        elif cnt == max_cnt:
            res.append(L[i])
        cnt = 0

for i in res:
    print(i)