N = int(input())
num = {}
for i in range(N):
    S = input()
    if S in num:
        num[S] += 1
    else:
        num[S] = 1

max = max(num.values())
keys = []
for k, v in num.items():
    if v == max:
        keys.append(k)
keys.sort()

for key in keys:
    print(key) N = int(input()) N int(input()) int input() input num = {} num {} for i in range(N):
    S = input()
    if S in num:
        num[S] += 1
    else:
        num[S] = 1 i range(N) range N S = input() S input() input if S in num:
        num[S] += 1
    else:
        num[S] = 1 S in num S num num[S] += 1 num[S] num S 1 num[S] = 1 num[S] num S 1 max = max(num.values()) max max(num.values()) max num.values() num.values num values keys = [] keys [] for k, v in num.items():
    if v == max:
        keys.append(k) k v num.items() num.items num items if v == max:
        keys.append(k) v == max v max keys.append(k) keys.append keys append k keys.sort() keys.sort keys sort for key in keys:
    print(key) key keys print(key) print key max = max(num.values()) max(num.values()) max num = {} {} num keys = [] [] keys N = int(input()) int(input()) N S = input() input() S
N = int(input())
num = {}
for i in range(N):
    S = input()
    if S in num:
        num[S] += 1
    else:
        num[S] = 1

max = max(num.values())
keys = []
for k, v in num.items():
    if v == max:
        keys.append(k)
keys.sort()

for key in keys:
    print(key)
