N = int(input()) A = input().split() A = [int(i) for i in A] A = sorted(A) m = N//2 if N % 2 == 0: print((A[m] + A[m+1]) / 2) else: print(A[m+1])