#your code goes here

def solve(ar, n):
    return ar[n // 2]

if __name__ == "__main__":
    n = int(input())
    ar = []
    for i in range(n):
        ar.append(input())
    print(solve(sorted(ar), n))
af01b8c8ed492aecc3eddbce19eaf83c5528e129
<mask token>

def solve(ar, n):
    return ar[n // 2]


<mask token>

def solve(ar, n):
    return ar[n // 2]


if __name__ == '__main__':
    n = int(input())
    ar = []
    for i in range(n):
        ar.append(input())
    print(solve(sorted(ar), n))

#your code goes here

def solve(ar, n):
    return ar[n // 2]

if __name__ == "__main__":
    n = int(input())
    ar = []
    for i in range(n):
        ar.append(input())
    print(solve(sorted(ar), n))