N=int(raw_input()) a=map(float,raw_input().split()) a.sort() if N%2==0: print (a[N/2]+a[N/2-1])/2.0 else: print a[(N-1)/2]