n=int(input())
a=[]
b=[[] for _ in range(n)]
for i in range(n):
    s=input()
    a.append(s)
a=sorted(a)
d=0
b[0].append(a[0])
for i in range(1,n):
    if a[i]!=a[i-1]:
        d+=1
    b[d].append(a[i])
x=max(len(b[i]) for i in range(n))
for i in range(n):
    if len(b[i])==x:
        print(b[i][0])
    
        
        
    
    
    
    
         n=int(input()) n int(input()) int input() input a=[] a [] [] for _ in range(n) for _ in range(n) _ range(n) range n for _ in range(n) [] b=[[] for _ in range(n)] b [[] for _ in range(n)] for i in range(n):
    s=input()
    a.append(s) i range(n) range n s=input() s input() input a.append(s) a.append a append s a=sorted(a) a sorted(a) sorted a d=0 d 0 b[0].append(a[0]) [0].append [0] b 0 append a[0] a 0 for i in range(1,n):
    if a[i]!=a[i-1]:
        d+=1
    b[d].append(a[i]) i range(1,n) range 1 n if a[i]!=a[i-1]:
        d+=1
     a[i]!=a[i-1] a[i] a i a[i-1] a i-1 i 1 d+=1 d 1 b[d].append(a[i]) [d].append [d] b d append a[i] a i x=max(len(b[i]) for i in range(n)) x max(len(b[i]) for i in range(n)) max len(b[i]) len b[i] b i for i in range(n):
    if len(b[i])==x:
        print(b[i][0])
    
        
        
    
    
    
    
         i range(n) range n if len(b[i])==x:
        print(b[i][0])
    
        
        
    
    
    
    
         len(b[i])==x len(b[i]) len b[i] b i x print(b[i][0]) print b[i][0] [i] b i 0 a=[] [] a b=[[] for _ in range(n)] [[] for _ in range(n)] b x=max(len(b[i]) for i in range(n)) max(len(b[i]) for i in range(n)) x a=sorted(a) sorted(a) a s=input() input() s d+=1 1 d n=int(input()) int(input()) n d=0 0 d
n=int(input())
a=[]
b=[[] for _ in range(n)]
for i in range(n):
    s=input()
    a.append(s)
a=sorted(a)
d=0
b[0].append(a[0])
for i in range(1,n):
    if a[i]!=a[i-1]:
        d+=1
    b[d].append(a[i])
x=max(len(b[i]) for i in range(n))
for i in range(n):
    if len(b[i])==x:
        print(b[i][0])
    
        
        
    
    
    
    
        
