number = int(input())
words = {}
answer = []
maxnum = 0
for i in range(number):
    word = input()
    if word in words:
        words[word] += 1
    else:
        words[word] = 1
    if maxnum < words[word]:
        maxnum = words[word]
        answer.clear()
        answer.append(word)
    elif maxnum == words[word]:
        answer.append(word)
answer.sort()
for j in range(len(answer)):
    print(answer[j]) number = int(input()) number int(input()) int input() input words = {} words {} answer = [] answer [] maxnum = 0 maxnum 0 for i in range(number):
    word = input()
    if word in words:
        words[word] += 1
    else:
        words[word] = 1
    if maxnum < words[word]:
        maxnum = words[word]
        answer.clear()
        answer.append(word)
    elif maxnum == words[word]:
        answer.append(word) i range(number) range number word = input() word input() input if word in words:
        words[word] += 1
    else:
        words[word] = 1
     word in words word words words[word] += 1 words[word] words word 1 words[word] = 1 words[word] words word 1 if maxnum < words[word]:
        maxnum = words[word]
        answer.clear()
        answer.append(word)
    elif maxnum == words[word]:
        answer.append(word) maxnum < words[word] maxnum words[word] words word maxnum = words[word] maxnum words[word] words word answer.clear() answer.clear answer clear answer.append(word) answer.append answer append word elif maxnum == words[word]:
        answer.append(word) maxnum == words[word] maxnum words[word] words word answer.append(word) answer.append answer append word answer.sort() answer.sort answer sort for j in range(len(answer)):
    print(answer[j]) j range(len(answer)) range len(answer) len answer print(answer[j]) print answer[j] answer j maxnum = 0 0 maxnum answer = [] [] answer word = input() input() word number = int(input()) int(input()) number words = {} {} words maxnum = words[word] words[word] maxnum
number = int(input())
words = {}
answer = []
maxnum = 0
for i in range(number):
    word = input()
    if word in words:
        words[word] += 1
    else:
        words[word] = 1
    if maxnum < words[word]:
        maxnum = words[word]
        answer.clear()
        answer.append(word)
    elif maxnum == words[word]:
        answer.append(word)
answer.sort()
for j in range(len(answer)):
    print(answer[j])