n = int(input())
s = [input() for i in range(n)]

import collections
c = collections.Counter(s)
ans = []
most = c.most_common()
word,count = most[0]
ans.append(word)
for i in range(1,len(c)):
    wordi,counti = most[i]
    if counti == count:
        ans.append(wordi)
    else:
        break
ans.sort()
print(*ans, sep = "\n") n = int(input()) n int(input()) int input() input input() for i in range(n) for i in range(n) i range(n) range n for i in range(n) input() input s = [input() for i in range(n)] s [input() for i in range(n)] import collections collections c = collections.Counter(s) c collections.Counter(s) collections.Counter collections Counter s ans = [] ans [] most = c.most_common() most c.most_common() c.most_common c most_common word,count = most[0] word most[0] most 0 count ans.append(word) ans.append ans append word for i in range(1,len(c)):
    wordi,counti = most[i]
    if counti == count:
        ans.append(wordi)
    else:
        break i range(1,len(c)) range 1 len(c) len c wordi,counti = most[i] wordi most[i] most i counti if counti == count:
        ans.append(wordi)
    else:
        break counti == count counti count ans.append(wordi) ans.append ans append wordi break ans.sort() ans.sort ans sort print(*ans, sep = "\n") print *ans ans sep = "\n" sep "\n" ans = [] [] ans most = c.most_common() c.most_common() most count = most[0] most[0] count counti = most[i] most[i] counti c = collections.Counter(s) collections.Counter(s) c wordi,counti = most[i] most[i] wordi n = int(input()) int(input()) n word,count = most[0] most[0] word s = [input() for i in range(n)] [input() for i in range(n)] s
n = int(input())
s = [input() for i in range(n)]

import collections
c = collections.Counter(s)
ans = []
most = c.most_common()
word,count = most[0]
ans.append(word)
for i in range(1,len(c)):
    wordi,counti = most[i]
    if counti == count:
        ans.append(wordi)
    else:
        break
ans.sort()
print(*ans, sep = "\n")