N = int(input()) A = list(map(int,input().split())) A.sort() if N % 2 == 0: M = (A[int(N/2)] + A[int(N/2) - 1])/2 else: M = A[int((N - 1)/2)] print(M)