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