n = int(input())
d = {}
for i in range(n):
    s = input()
    if s in d:
        d[s] += 1
    else:
        d[s] = 1
mx = max(d.values())
ans = ['']
for k, v in d.items():
    if v == mx:
        ans.append(k)
ans.sort()
print(*ans, sep='\n') n = int(input()) n int(input()) int input() input d = {} d {} for i in range(n):
    s = input()
    if s in d:
        d[s] += 1
    else:
        d[s] = 1 i range(n) range n s = input() s input() input if s in d:
        d[s] += 1
    else:
        d[s] = 1 s in d s d d[s] += 1 d[s] d s 1 d[s] = 1 d[s] d s 1 mx = max(d.values()) mx max(d.values()) max d.values() d.values d values ans = [''] ans [''] '' for k, v in d.items():
    if v == mx:
        ans.append(k) k v d.items() d.items d items if v == mx:
        ans.append(k) v == mx v mx ans.append(k) ans.append ans append k ans.sort() ans.sort ans sort print(*ans, sep='\n') print *ans ans sep='\n' sep '\n' d = {} {} d mx = max(d.values()) max(d.values()) mx ans = [''] [''] ans n = int(input()) int(input()) n s = input() input() s
n = int(input())
d = {}
for i in range(n):
    s = input()
    if s in d:
        d[s] += 1
    else:
        d[s] = 1
mx = max(d.values())
ans = ['']
for k, v in d.items():
    if v == mx:
        ans.append(k)
ans.sort()
print(*ans, sep='\n')
