num12 = int(input())
med = list(map(int, input().split()))
med.sort()
num145 = med[int(num12 / 2)]
print(num145)

0f421a5d6df6a100f75bb230d87cd492c4ae273a
<mask token>

<mask token>
med.sort()
<mask token>
print(num145)

num12 = int(input())
med = list(map(int, input().split()))
med.sort()
num145 = med[int(num12 / 2)]
print(num145)
