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