N = int(input())
dic = {}
for i in range(N):
    s = input()
    if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1
max_val = max(dic.values())
rst = [ key for key, val in dic.items() if val == max_val ]
[ print(i) for i in sorted(rst) ] N = int(input()) N int(input()) int input() input dic = {} dic {} for i in range(N):
    s = input()
    if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1 i range(N) range N s = input() s input() input if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1 s in dic s dic dic[s] += 1 dic[s] dic s 1 dic[s] = 1 dic[s] dic s 1 max_val = max(dic.values()) max_val max(dic.values()) max dic.values() dic.values dic values key for key, val in dic.items() if val == max_val for key, val in dic.items() if val == max_val key val dic.items() dic.items dic items val == max_val val max_val if val == max_val key rst = [ key for key, val in dic.items() if val == max_val ] rst [ key for key, val in dic.items() if val == max_val ] print(i) for i in sorted(rst) for i in sorted(rst) i sorted(rst) sorted rst for i in sorted(rst) print(i) print i [ print(i) for i in sorted(rst) ] s = input() input() s dic = {} {} dic N = int(input()) int(input()) N max_val = max(dic.values()) max(dic.values()) max_val rst = [ key for key, val in dic.items() if val == max_val ] [ key for key, val in dic.items() if val == max_val ] rst
N = int(input())
dic = {}
for i in range(N):
    s = input()
    if s in dic:
        dic[s] += 1
    else:
        dic[s] = 1
max_val = max(dic.values())
rst = [ key for key, val in dic.items() if val == max_val ]
[ print(i) for i in sorted(rst) ]
