N=int(input()) A=map(int,input().split()) B=sorted(A) Ans=0 if N%2==0: Ans=float((B[int(N/2-1)]+B[int(N/2)])/2) print(Ans) else: Ans=B[int(N/2)] print(Ans)