# coding: utf-8
# Your code here!
import sys
from collections import Counter
import numpy as np
n=int(input())
S=[]
for i in range(n):
    S.append(input())
s=Counter(S)
keys, values = zip(*s.most_common())

values=np.array(values)
index=np.where(values==np.max(values))
answer=[]
for i in index[0]:
    answer.append(keys[i])
answer.sort()
for i in answer:
    print(i) import sys sys from collections import Counter import numpy as np numpy n=int(input()) n int(input()) int input() input S=[] S [] for i in range(n):
    S.append(input()) i range(n) range n S.append(input()) S.append S append input() input s=Counter(S) s Counter(S) Counter S keys, values = zip(*s.most_common()) keys zip(*s.most_common()) zip *s.most_common() s.most_common() s.most_common s most_common values values=np.array(values) values np.array(values) np.array np array values index=np.where(values==np.max(values)) index np.where(values==np.max(values)) np.where np where values==np.max(values) values np.max(values) np.max np max values answer=[] answer [] for i in index[0]:
    answer.append(keys[i]) i index[0] index 0 answer.append(keys[i]) answer.append answer append keys[i] keys i answer.sort() answer.sort answer sort for i in answer:
    print(i) i answer print(i) print i S=[] [] S keys, values = zip(*s.most_common()) zip(*s.most_common()) keys answer=[] [] answer s=Counter(S) Counter(S) s values=np.array(values) np.array(values) values n=int(input()) int(input()) n values = zip(*s.most_common()) zip(*s.most_common()) values index=np.where(values==np.max(values)) np.where(values==np.max(values)) index
# coding: utf-8
# Your code here!
import sys
from collections import Counter
import numpy as np
n=int(input())
S=[]
for i in range(n):
    S.append(input())
s=Counter(S)
keys, values = zip(*s.most_common())

values=np.array(values)
index=np.where(values==np.max(values))
answer=[]
for i in index[0]:
    answer.append(keys[i])
answer.sort()
for i in answer:
    print(i)