n=int(input())
ans={"b":0}
ma=0
pr=[]
for i in range(n):
    name=input()
    if name in ans.keys():
        ans[name]=ans[name]+1
    else:
        ans[name]=1
for j,k in ans.items():
    if k>ma:
        ma=k 
        pr=[j]
    elif k==ma:
        pr.append(j)
pr.sort()
for l in pr:
    print(l) n=int(input()) n int(input()) int input() input ans={"b":0} ans {"b":0} "b" "b" 0 ma=0 ma 0 pr=[] pr [] for i in range(n):
    name=input()
    if name in ans.keys():
        ans[name]=ans[name]+1
    else:
        ans[name]=1 i range(n) range n name=input() name input() input if name in ans.keys():
        ans[name]=ans[name]+1
    else:
        ans[name]=1 name in ans.keys() name ans.keys() ans.keys ans keys ans[name]=ans[name]+1 ans[name] ans name ans[name]+1 ans[name] ans name 1 ans[name]=1 ans[name] ans name 1 for j,k in ans.items():
    if k>ma:
        ma=k 
        pr=[j]
    elif k==ma:
        pr.append(j) j k ans.items() ans.items ans items if k>ma:
        ma=k 
        pr=[j]
    elif k==ma:
        pr.append(j) k>ma k ma ma=k ma k pr=[j] pr [j] j elif k==ma:
        pr.append(j) k==ma k ma pr.append(j) pr.append pr append j pr.sort() pr.sort pr sort for l in pr:
    print(l) l pr print(l) print l n=int(input()) int(input()) n pr=[j] [j] pr ma=0 0 ma pr=[] [] pr name=input() input() name ans={"b":0} {"b":0} ans ma=k k ma
n=int(input())
ans={"b":0}
ma=0
pr=[]
for i in range(n):
    name=input()
    if name in ans.keys():
        ans[name]=ans[name]+1
    else:
        ans[name]=1
for j,k in ans.items():
    if k>ma:
        ma=k 
        pr=[j]
    elif k==ma:
        pr.append(j)
pr.sort()
for l in pr:
    print(l)