N = int(input())
dic = {}
for _ in range(N):
    s = input()
    if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1
ma = max(dic.values())
for i,j in sorted(dic.items()):
    if j == ma:
        print(i) 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 ma = max(dic.values()) ma max(dic.values()) max dic.values() dic.values dic values for i,j in sorted(dic.items()):
    if j == ma:
        print(i) i j sorted(dic.items()) sorted dic.items() dic.items dic items if j == ma:
        print(i) j == ma j ma print(i) print i dic = {} {} dic ma = max(dic.values()) max(dic.values()) ma N = int(input()) int(input()) N s = input() input() s
N = int(input())
dic = {}
for _ in range(N):
    s = input()
    if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1
ma = max(dic.values())
for i,j in sorted(dic.items()):
    if j == ma:
        print(i)