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