N=int(input()) A=[int(i) for i in input().split()] A.sort() if N%2==1: print(A[N//2]) else: print((A[N//2]+A[-1+N//2])/2)