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