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