from collections import Counter
N = int(input())
S = [input() for _ in range(N)]
S.sort()
n = Counter()
for s in S:
    n[s] += 1
max = max(n.values())
S = set(S)
for s in S:
    if n[s] == max:
        print(s) from collections import Counter N = int(input()) N int(input()) int input() input input() for _ in range(N) for _ in range(N) _ range(N) range N for _ in range(N) input() input S = [input() for _ in range(N)] S [input() for _ in range(N)] S.sort() S.sort S sort n = Counter() n Counter() Counter for s in S:
    n[s] += 1 s S n[s] += 1 n[s] n s 1 max = max(n.values()) max max(n.values()) max n.values() n.values n values S = set(S) S set(S) set S for s in S:
    if n[s] == max:
        print(s) s S if n[s] == max:
        print(s) n[s] == max n[s] n s max print(s) print s S = [input() for _ in range(N)] [input() for _ in range(N)] S max = max(n.values()) max(n.values()) max n = Counter() Counter() n N = int(input()) int(input()) N S = set(S) set(S) S
from collections import Counter
N = int(input())
S = [input() for _ in range(N)]
S.sort()
n = Counter()
for s in S:
    n[s] += 1
max = max(n.values())
S = set(S)
for s in S:
    if n[s] == max:
        print(s)
