N = int(input())
dic = {}
for i in range(N):
    s = str(input())
    if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1

S = sorted(dic.values())
t = S[-1]

X = []
for key in dic:
    if dic[key] == t:
        X.append(key)
x = sorted(X)

for i in range(len(X)):
    print(x[i]) N = int(input()) N int(input()) int input() input dic = {} dic {} for i in range(N):
    s = str(input())
    if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1 i range(N) range N s = str(input()) s str(input()) str 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 S = sorted(dic.values()) S sorted(dic.values()) sorted dic.values() dic.values dic values t = S[-1] t S[-1] S -1 X = [] X [] for key in dic:
    if dic[key] == t:
        X.append(key) key dic if dic[key] == t:
        X.append(key) dic[key] == t dic[key] dic key t X.append(key) X.append X append key x = sorted(X) x sorted(X) sorted X for i in range(len(X)):
    print(x[i]) i range(len(X)) range len(X) len X print(x[i]) print x[i] x i dic = {} {} dic X = [] [] X S = sorted(dic.values()) sorted(dic.values()) S x = sorted(X) sorted(X) x N = int(input()) int(input()) N t = S[-1] S[-1] t s = str(input()) str(input()) s
N = int(input())
dic = {}
for i in range(N):
    s = str(input())
    if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1

S = sorted(dic.values())
t = S[-1]

X = []
for key in dic:
    if dic[key] == t:
        X.append(key)
x = sorted(X)

for i in range(len(X)):
    print(x[i])