N = input() A = input().split() if(N % 2 == 0): Median = A[N/2] + A[N/2 + 1] / 2 else: Median = N / 2 + 0.5 print(Median)