from collections import Counter
k = [input() for _ in range(int(input()))]
l = Counter(k)
m = l[max(l , key = lambda x: l[x])]
ans = sorted(filter(lambda x:l[x]==m ,l))
print(*ans, sep='\n') from collections import Counter input() for _ in range(int(input())) for _ in range(int(input())) _ range(int(input())) range int(input()) int input() input for _ in range(int(input())) input() input k = [input() for _ in range(int(input()))] k [input() for _ in range(int(input()))] l = Counter(k) l Counter(k) Counter k m = l[max(l , key = lambda x: l[x])] m l[max(l , key = lambda x: l[x])] l max(l , key = lambda x: l[x]) max l key = lambda x: l[x] key lambda x: l[x] l[x] l x x ans = sorted(filter(lambda x:l[x]==m ,l)) ans sorted(filter(lambda x:l[x]==m ,l)) sorted filter(lambda x:l[x]==m ,l) filter lambda x:l[x]==m l[x]==m l[x] l x m x l print(*ans, sep='\n') print *ans ans sep='\n' sep '\n' k = [input() for _ in range(int(input()))] [input() for _ in range(int(input()))] k l = Counter(k) Counter(k) l ans = sorted(filter(lambda x:l[x]==m ,l)) sorted(filter(lambda x:l[x]==m ,l)) ans m = l[max(l , key = lambda x: l[x])] l[max(l , key = lambda x: l[x])] m
from collections import Counter
k = [input() for _ in range(int(input()))]
l = Counter(k)
m = l[max(l , key = lambda x: l[x])]
ans = sorted(filter(lambda x:l[x]==m ,l))
print(*ans, sep='\n')