N = int(input())
x = {}
for _ in range(N):
    s = input()
    if s in x:
        x[s] += 1
    else:
        x[s] = 1

maxcount = max(x.values())
ans = []
for s, count in x.items():
    if count == maxcount:
        ans.append(s)
ans.sort()
for a in ans:
    print(a) N = int(input()) N int(input()) int input() input x = {} x {} for _ in range(N):
    s = input()
    if s in x:
        x[s] += 1
    else:
        x[s] = 1 _ range(N) range N s = input() s input() input if s in x:
        x[s] += 1
    else:
        x[s] = 1 s in x s x x[s] += 1 x[s] x s 1 x[s] = 1 x[s] x s 1 maxcount = max(x.values()) maxcount max(x.values()) max x.values() x.values x values ans = [] ans [] for s, count in x.items():
    if count == maxcount:
        ans.append(s) s count x.items() x.items x items if count == maxcount:
        ans.append(s) count == maxcount count maxcount ans.append(s) ans.append ans append s ans.sort() ans.sort ans sort for a in ans:
    print(a) a ans print(a) print a x = {} {} x maxcount = max(x.values()) max(x.values()) maxcount N = int(input()) int(input()) N ans = [] [] ans s = input() input() s
N = int(input())
x = {}
for _ in range(N):
    s = input()
    if s in x:
        x[s] += 1
    else:
        x[s] = 1

maxcount = max(x.values())
ans = []
for s, count in x.items():
    if count == maxcount:
        ans.append(s)
ans.sort()
for a in ans:
    print(a)