n = int(input())
s = [int(i) for i in input().split()]
s.sort()
e = s[int(n / 2)]
print(e)

89955380b444ac1b776cdb59d23087c2e693ba12
<mask token>

<mask token>
s.sort()
<mask token>
print(e)

n = int(input())
s = [int(i) for i in input().split()]
s.sort()
e = s[int(n / 2)]
print(e)
