import collections

N=int(input())
S=sorted([input() for _ in range(N)])
s=sorted(list(set(S)))
l=len(s)
c=collections.Counter(S)
max_v = max(c.values())
for i in range(l):
    if max_v==c[s[i]]:
        print(s[i]) import collections collections 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=sorted([input() for _ in range(N)]) S sorted([input() for _ in range(N)]) sorted [input() for _ in range(N)] s=sorted(list(set(S))) s sorted(list(set(S))) sorted list(set(S)) list set(S) set S l=len(s) l len(s) len s c=collections.Counter(S) c collections.Counter(S) collections.Counter collections Counter S max_v = max(c.values()) max_v max(c.values()) max c.values() c.values c values for i in range(l):
    if max_v==c[s[i]]:
        print(s[i]) i range(l) range l if max_v==c[s[i]]:
        print(s[i]) max_v==c[s[i]] max_v c[s[i]] c s[i] s i print(s[i]) print s[i] s i l=len(s) len(s) l max_v = max(c.values()) max(c.values()) max_v c=collections.Counter(S) collections.Counter(S) c N=int(input()) int(input()) N S=sorted([input() for _ in range(N)]) sorted([input() for _ in range(N)]) S s=sorted(list(set(S))) sorted(list(set(S))) s
import collections

N=int(input())
S=sorted([input() for _ in range(N)])
s=sorted(list(set(S)))
l=len(s)
c=collections.Counter(S)
max_v = max(c.values())
for i in range(l):
    if max_v==c[s[i]]:
        print(s[i])