N=int(input())
Sdict={}

for i in range(N):
	s=input()
	if s in Sdict:
		Sdict[s]+=1
	else:
		Sdict[s]=1

vmax=max(Sdict.values())

#Sdict_sorted=sorted(Sdict.items(), key=lambda x:x[1])
#print(Sdict_sorted)

anskeys = [k for k, v in Sdict.items() if v == vmax]
for ans in sorted(anskeys):
	print(ans) N=int(input()) N int(input()) int input() input Sdict={} Sdict {} for i in range(N):
	s=input()
	if s in Sdict:
		Sdict[s]+=1
	else:
		Sdict[s]=1 i range(N) range N s=input() s input() input if s in Sdict:
		Sdict[s]+=1
	else:
		Sdict[s]=1 s in Sdict s Sdict Sdict[s]+=1 Sdict[s] Sdict s 1 Sdict[s]=1 Sdict[s] Sdict s 1 vmax=max(Sdict.values()) vmax max(Sdict.values()) max Sdict.values() Sdict.values Sdict values k for k, v in Sdict.items() if v == vmax for k, v in Sdict.items() if v == vmax k v Sdict.items() Sdict.items Sdict items v == vmax v vmax if v == vmax k anskeys = [k for k, v in Sdict.items() if v == vmax] anskeys [k for k, v in Sdict.items() if v == vmax] for ans in sorted(anskeys):
	print(ans) ans sorted(anskeys) sorted anskeys print(ans) print ans Sdict={} {} Sdict s=input() input() s vmax=max(Sdict.values()) max(Sdict.values()) vmax N=int(input()) int(input()) N anskeys = [k for k, v in Sdict.items() if v == vmax] [k for k, v in Sdict.items() if v == vmax] anskeys
N=int(input())
Sdict={}

for i in range(N):
	s=input()
	if s in Sdict:
		Sdict[s]+=1
	else:
		Sdict[s]=1

vmax=max(Sdict.values())

#Sdict_sorted=sorted(Sdict.items(), key=lambda x:x[1])
#print(Sdict_sorted)

anskeys = [k for k, v in Sdict.items() if v == vmax]
for ans in sorted(anskeys):
	print(ans)