n = int(input())
d = {}
m = 0
for i in range(n):
    s = input()
    d[s] = d.get(s, 0) + 1
    if m <= d[s]:
        m = d[s]
c = []
for i in d:
    if d[i]==m:
        c.append(i)
c.sort()
for x in c:
    print(x) n = int(input()) n int(input()) int input() input d = {} d {} m = 0 m 0 for i in range(n):
    s = input()
    d[s] = d.get(s, 0) + 1
    if m <= d[s]:
        m = d[s] i range(n) range n s = input() s input() input d[s] = d.get(s, 0) + 1 d[s] d s d.get(s, 0) + 1 d.get(s, 0) d.get d get s 0 1 if m <= d[s]:
        m = d[s] m <= d[s] m d[s] d s m = d[s] m d[s] d s c = [] c [] for i in d:
    if d[i]==m:
        c.append(i) i d if d[i]==m:
        c.append(i) d[i]==m d[i] d i m c.append(i) c.append c append i c.sort() c.sort c sort for x in c:
    print(x) x c print(x) print x m = d[s] d[s] m s = input() input() s d = {} {} d n = int(input()) int(input()) n m = 0 0 m c = [] [] c
n = int(input())
d = {}
m = 0
for i in range(n):
    s = input()
    d[s] = d.get(s, 0) + 1
    if m <= d[s]:
        m = d[s]
c = []
for i in d:
    if d[i]==m:
        c.append(i)
c.sort()
for x in c:
    print(x)