N = int(input())

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

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

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

max = max(dict.values())
for key, val in sorted(dict.items()):
    if(val == max):
        print(key)
