N = int(input())
A = list(map(int,input().split()))
sorted_A = sorted(A)
if N % 2 == 0:
    average = sorted_A[N // 2 - 1] + sorted_A[N // 2 + 1 - 1] 
    ans = average / 2
    print(ans)
elif N % 2 == 1:
    print(sorted_A[N // 2])