n=int(input())
wl={}
for i in range(n):
    w=input()
    if w not in wl:
        wl[w]=0
    wl[w]+=1
wm=max(wl.values())
wl3=sorted(wl.items())
for i in range(len(wl3)):
    if wl3[i][1]==wm:
        print(wl3[i][0]) n=int(input()) n int(input()) int input() input wl={} wl {} for i in range(n):
    w=input()
    if w not in wl:
        wl[w]=0
    wl[w]+=1 i range(n) range n w=input() w input() input if w not in wl:
        wl[w]=0
     w not in wl w wl wl[w]=0 wl[w] wl w 0 wl[w]+=1 wl[w] wl w 1 wm=max(wl.values()) wm max(wl.values()) max wl.values() wl.values wl values wl3=sorted(wl.items()) wl3 sorted(wl.items()) sorted wl.items() wl.items wl items for i in range(len(wl3)):
    if wl3[i][1]==wm:
        print(wl3[i][0]) i range(len(wl3)) range len(wl3) len wl3 if wl3[i][1]==wm:
        print(wl3[i][0]) wl3[i][1]==wm wl3[i][1] [i] wl3 i 1 wm print(wl3[i][0]) print wl3[i][0] [i] wl3 i 0 wl={} {} wl n=int(input()) int(input()) n wm=max(wl.values()) max(wl.values()) wm wl3=sorted(wl.items()) sorted(wl.items()) wl3 w=input() input() w
n=int(input())
wl={}
for i in range(n):
    w=input()
    if w not in wl:
        wl[w]=0
    wl[w]+=1
wm=max(wl.values())
wl3=sorted(wl.items())
for i in range(len(wl3)):
    if wl3[i][1]==wm:
        print(wl3[i][0])