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