N = int(input())
S = [input() for _ in range(N)]
dic = {}
for i in range(N):
    if S[i] not in dic.keys():
        dic[S[i]] = 1
    else:
        dic[S[i]] += 1

maxI = max(dic.values())
ans = []

for keys in dic.keys():
    if dic[keys] == maxI:
        ans.append(keys)

ans.sort()

for i in 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 = [input() for _ in range(N)] S [input() for _ in range(N)] dic = {} dic {} for i in range(N):
    if S[i] not in dic.keys():
        dic[S[i]] = 1
    else:
        dic[S[i]] += 1 i range(N) range N if S[i] not in dic.keys():
        dic[S[i]] = 1
    else:
        dic[S[i]] += 1 S[i] not in dic.keys() S[i] S i dic.keys() dic.keys dic keys dic[S[i]] = 1 dic[S[i]] dic S[i] S i 1 dic[S[i]] += 1 dic[S[i]] dic S[i] S i 1 maxI = max(dic.values()) maxI max(dic.values()) max dic.values() dic.values dic values ans = [] ans [] for keys in dic.keys():
    if dic[keys] == maxI:
        ans.append(keys) keys dic.keys() dic.keys dic keys if dic[keys] == maxI:
        ans.append(keys) dic[keys] == maxI dic[keys] dic keys maxI ans.append(keys) ans.append ans append keys ans.sort() ans.sort ans sort for i in ans:
    print(i) i ans print(i) print i ans = [] [] ans N = int(input()) int(input()) N maxI = max(dic.values()) max(dic.values()) maxI dic = {} {} dic S = [input() for _ in range(N)] [input() for _ in range(N)] S
N = int(input())
S = [input() for _ in range(N)]
dic = {}
for i in range(N):
    if S[i] not in dic.keys():
        dic[S[i]] = 1
    else:
        dic[S[i]] += 1

maxI = max(dic.values())
ans = []

for keys in dic.keys():
    if dic[keys] == maxI:
        ans.append(keys)

ans.sort()

for i in ans:
    print(i)
