n=int(input())
a={}
for i in range(n):
    key=input()
    if key in a:
        a[key]+=1
    else:
        a[key]=1
b=max(list(a.values()))
c=[]
for k,v in a.items():
    if v==b:
        c.append(k)
c=sorted(c)
for i in range(len(c)):
    print(c[i]) n=int(input()) n int(input()) int input() input a={} a {} for i in range(n):
    key=input()
    if key in a:
        a[key]+=1
    else:
        a[key]=1 i range(n) range n key=input() key input() input if key in a:
        a[key]+=1
    else:
        a[key]=1 key in a key a a[key]+=1 a[key] a key 1 a[key]=1 a[key] a key 1 b=max(list(a.values())) b max(list(a.values())) max list(a.values()) list a.values() a.values a values c=[] c [] for k,v in a.items():
    if v==b:
        c.append(k) k v a.items() a.items a items if v==b:
        c.append(k) v==b v b c.append(k) c.append c append k c=sorted(c) c sorted(c) sorted c for i in range(len(c)):
    print(c[i]) i range(len(c)) range len(c) len c print(c[i]) print c[i] c i a={} {} a n=int(input()) int(input()) n c=sorted(c) sorted(c) c c=[] [] c key=input() input() key b=max(list(a.values())) max(list(a.values())) b
n=int(input())
a={}
for i in range(n):
    key=input()
    if key in a:
        a[key]+=1
    else:
        a[key]=1
b=max(list(a.values()))
c=[]
for k,v in a.items():
    if v==b:
        c.append(k)
c=sorted(c)
for i in range(len(c)):
    print(c[i])