n = int(input())
s = [input() for _ in range(n)]
ss = sorted(s)
t = ss
x = 0
maxx = 0
for i in range(n-1):
    if ss[i] == ss[i+1]:
        x += 1
        if x == maxx:
            maxx = x
            t.append(ss[i])
        elif x > maxx:
            maxx = x
            t = [ss[i]]
    else:
        x = 0
for j in t:
    print(j) n = int(input()) n int(input()) int input() input input() for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) input() input s = [input() for _ in range(n)] s [input() for _ in range(n)] ss = sorted(s) ss sorted(s) sorted s t = ss t ss x = 0 x 0 maxx = 0 maxx 0 for i in range(n-1):
    if ss[i] == ss[i+1]:
        x += 1
        if x == maxx:
            maxx = x
            t.append(ss[i])
        elif x > maxx:
            maxx = x
            t = [ss[i]]
    else:
        x = 0 i range(n-1) range n-1 n 1 if ss[i] == ss[i+1]:
        x += 1
        if x == maxx:
            maxx = x
            t.append(ss[i])
        elif x > maxx:
            maxx = x
            t = [ss[i]]
    else:
        x = 0 ss[i] == ss[i+1] ss[i] ss i ss[i+1] ss i+1 i 1 x += 1 x 1 if x == maxx:
            maxx = x
            t.append(ss[i])
        elif x > maxx:
            maxx = x
            t = [ss[i]]
     x == maxx x maxx maxx = x maxx x t.append(ss[i]) t.append t append ss[i] ss i elif x > maxx:
            maxx = x
            t = [ss[i]]
     x > maxx x maxx maxx = x maxx x t = [ss[i]] t [ss[i]] ss[i] ss i x = 0 x 0 for j in t:
    print(j) j t print(j) print j x = 0 0 x maxx = 0 0 maxx n = int(input()) int(input()) n maxx = x x maxx t = [ss[i]] [ss[i]] t ss = sorted(s) sorted(s) ss x += 1 1 x t = ss ss t x = 0 0 x s = [input() for _ in range(n)] [input() for _ in range(n)] s maxx = x x maxx
n = int(input())
s = [input() for _ in range(n)]
ss = sorted(s)
t = ss
x = 0
maxx = 0
for i in range(n-1):
    if ss[i] == ss[i+1]:
        x += 1
        if x == maxx:
            maxx = x
            t.append(ss[i])
        elif x > maxx:
            maxx = x
            t = [ss[i]]
    else:
        x = 0
for j in t:
    print(j)