n = int(input())
dic = {}

for i in range(n):
    s = input()
    if s not in dic:
        dic[s] = 1
    else:
        dic[s] += 1

C = sorted(dic.items())
max_dic = max(dic.values())

for name,i in C:
    if i == max_dic:
        print(name) n = int(input()) n int(input()) int input() input dic = {} dic {} for i in range(n):
    s = input()
    if s not in dic:
        dic[s] = 1
    else:
        dic[s] += 1 i range(n) range n s = input() s input() input if s not in dic:
        dic[s] = 1
    else:
        dic[s] += 1 s not in dic s dic dic[s] = 1 dic[s] dic s 1 dic[s] += 1 dic[s] dic s 1 C = sorted(dic.items()) C sorted(dic.items()) sorted dic.items() dic.items dic items max_dic = max(dic.values()) max_dic max(dic.values()) max dic.values() dic.values dic values for name,i in C:
    if i == max_dic:
        print(name) name i C if i == max_dic:
        print(name) i == max_dic i max_dic print(name) print name n = int(input()) int(input()) n max_dic = max(dic.values()) max(dic.values()) max_dic C = sorted(dic.items()) sorted(dic.items()) C s = input() input() s dic = {} {} dic
n = int(input())
dic = {}

for i in range(n):
    s = input()
    if s not in dic:
        dic[s] = 1
    else:
        dic[s] += 1

C = sorted(dic.items())
max_dic = max(dic.values())

for name,i in C:
    if i == max_dic:
        print(name)