N=int(input())
A = sorted(map(int, input().split()))
print((A[N//2] + A[(N-1)//2]) /2 )