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

res = {}
for s in S:
    if s in res:
        res[s] += 1
    else:
        res[s] = 1
max_ = max(res.values())

ans = []
for k in res:
    if res[k] == max_:
        ans.append(k)
ans.sort()

for a in ans:
    print(a) 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)] res = {} res {} for s in S:
    if s in res:
        res[s] += 1
    else:
        res[s] = 1 s S if s in res:
        res[s] += 1
    else:
        res[s] = 1 s in res s res res[s] += 1 res[s] res s 1 res[s] = 1 res[s] res s 1 max_ = max(res.values()) max_ max(res.values()) max res.values() res.values res values ans = [] ans [] for k in res:
    if res[k] == max_:
        ans.append(k) k res if res[k] == max_:
        ans.append(k) res[k] == max_ res[k] res k max_ ans.append(k) ans.append ans append k ans.sort() ans.sort ans sort for a in ans:
    print(a) a ans print(a) print a ans = [] [] ans res = {} {} res N = int(input()) int(input()) N max_ = max(res.values()) max(res.values()) max_ S = [input() for _ in range(N)] [input() for _ in range(N)] S
N = int(input())
S = [input() for _ in range(N)]

res = {}
for s in S:
    if s in res:
        res[s] += 1
    else:
        res[s] = 1
max_ = max(res.values())

ans = []
for k in res:
    if res[k] == max_:
        ans.append(k)
ans.sort()

for a in ans:
    print(a)