N = int(input())
S = [input() for _ in range(N)]

S.sort()

maxint = 1

sdic = {}

for s in S:
    if s in sdic:
        sdic[s] += 1
        if sdic[s] > maxint:
            maxint = sdic[s]

    else:
        sdic[s] = 1

for s in sdic:
    if sdic[s] == maxint:
        print(s) 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 maxint = 1 maxint 1 sdic = {} sdic {} for s in S:
    if s in sdic:
        sdic[s] += 1
        if sdic[s] > maxint:
            maxint = sdic[s]

    else:
        sdic[s] = 1 s S if s in sdic:
        sdic[s] += 1
        if sdic[s] > maxint:
            maxint = sdic[s]

    else:
        sdic[s] = 1 s in sdic s sdic sdic[s] += 1 sdic[s] sdic s 1 if sdic[s] > maxint:
            maxint = sdic[s]

     sdic[s] > maxint sdic[s] sdic s maxint maxint = sdic[s] maxint sdic[s] sdic s sdic[s] = 1 sdic[s] sdic s 1 for s in sdic:
    if sdic[s] == maxint:
        print(s) s sdic if sdic[s] == maxint:
        print(s) sdic[s] == maxint sdic[s] sdic s maxint print(s) print s maxint = sdic[s] sdic[s] maxint sdic = {} {} sdic N = int(input()) int(input()) N S = [input() for _ in range(N)] [input() for _ in range(N)] S maxint = 1 1 maxint
N = int(input())
S = [input() for _ in range(N)]

S.sort()

maxint = 1

sdic = {}

for s in S:
    if s in sdic:
        sdic[s] += 1
        if sdic[s] > maxint:
            maxint = sdic[s]

    else:
        sdic[s] = 1

for s in sdic:
    if sdic[s] == maxint:
        print(s)