N = int(input())
dic = {}
for _ in range(N):
    s = input()
    if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1

num = 0
for key in dic:
    num = max(num, dic[key])

ans = []
for key in dic:
    if dic[key] == num:
        ans.append(key)

ans.sort()
for a in ans:
    print(a) N = int(input()) N int(input()) int input() input dic = {} dic {} for _ in range(N):
    s = input()
    if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1 _ range(N) range N s = input() s input() input if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1 s in dic s dic dic[s] += 1 dic[s] dic s 1 dic[s] = 1 dic[s] dic s 1 num = 0 num 0 for key in dic:
    num = max(num, dic[key]) key dic num = max(num, dic[key]) num max(num, dic[key]) max num dic[key] dic key ans = [] ans [] for key in dic:
    if dic[key] == num:
        ans.append(key) key dic if dic[key] == num:
        ans.append(key) dic[key] == num dic[key] dic key num ans.append(key) ans.append ans append key ans.sort() ans.sort ans sort for a in ans:
    print(a) a ans print(a) print a dic = {} {} dic s = input() input() s num = max(num, dic[key]) max(num, dic[key]) num N = int(input()) int(input()) N num = 0 0 num ans = [] [] ans
N = int(input())
dic = {}
for _ in range(N):
    s = input()
    if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1

num = 0
for key in dic:
    num = max(num, dic[key])

ans = []
for key in dic:
    if dic[key] == num:
        ans.append(key)

ans.sort()
for a in ans:
    print(a)