import collections
n=int(input())
data=[""]*n
for i in range(n):
    data[i]=input()
data=sorted(data)
count=collections.Counter(data)
num=max(count.values())
for v,k in count.items():
    if k==num:
        print(v) import collections collections n=int(input()) n int(input()) int input() input data=[""]*n data [""]*n [""] "" n for i in range(n):
    data[i]=input() i range(n) range n data[i]=input() data[i] data i input() input data=sorted(data) data sorted(data) sorted data count=collections.Counter(data) count collections.Counter(data) collections.Counter collections Counter data num=max(count.values()) num max(count.values()) max count.values() count.values count values for v,k in count.items():
    if k==num:
        print(v) v k count.items() count.items count items if k==num:
        print(v) k==num k num print(v) print v count=collections.Counter(data) collections.Counter(data) count num=max(count.values()) max(count.values()) num data=[""]*n [""]*n data n=int(input()) int(input()) n data=sorted(data) sorted(data) data
import collections
n=int(input())
data=[""]*n
for i in range(n):
    data[i]=input()
data=sorted(data)
count=collections.Counter(data)
num=max(count.values())
for v,k in count.items():
    if k==num:
        print(v)