n = int(input())
c = {}
m = 0
for i in range(n):
    s = input()
    if s in c:
        c[s] += 1
    else:
        c[s] = 1
    if m < c[s]:
        m = c[s]

ans = []

for i in c:
    if m == c[i]:
        ans.append(i)

ans = sorted(ans)

for i in ans:
    print(i) n = int(input()) n int(input()) int input() input c = {} c {} m = 0 m 0 for i in range(n):
    s = input()
    if s in c:
        c[s] += 1
    else:
        c[s] = 1
    if m < c[s]:
        m = c[s] i range(n) range n s = input() s input() input if s in c:
        c[s] += 1
    else:
        c[s] = 1
     s in c s c c[s] += 1 c[s] c s 1 c[s] = 1 c[s] c s 1 if m < c[s]:
        m = c[s] m < c[s] m c[s] c s m = c[s] m c[s] c s ans = [] ans [] for i in c:
    if m == c[i]:
        ans.append(i) i c if m == c[i]:
        ans.append(i) m == c[i] m c[i] c i ans.append(i) ans.append ans append i ans = sorted(ans) ans sorted(ans) sorted ans for i in ans:
    print(i) i ans print(i) print i m = 0 0 m ans = [] [] ans s = input() input() s m = c[s] c[s] m n = int(input()) int(input()) n ans = sorted(ans) sorted(ans) ans c = {} {} c
n = int(input())
c = {}
m = 0
for i in range(n):
    s = input()
    if s in c:
        c[s] += 1
    else:
        c[s] = 1
    if m < c[s]:
        m = c[s]

ans = []

for i in c:
    if m == c[i]:
        ans.append(i)

ans = sorted(ans)

for i in ans:
    print(i)
