N,*A=map(int,open(0).read().split()) A.sort() if N%2:print(A[N//2]) else:print((A[N//2-1]+A[N//2])/2)