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