#36206: python AC(模組)


aa0980949726@gmail.com (回來寫C++希望我不會放棄吧,喔對 其他解題網站好難歐幹一題...)


import statistics
n=int(input())
x=[int(y) for y in input().split()]
print(int(statistics.median(x)))