N = input() A = sorted(map(int, raw_input().split())) if N % 2 == 1: print(A[N/2+1]) else: print((A[N/2] + A[N/2+1])*0.5)