N = int(input()) A = [int(N) for N in input().split()] A.sort() if(N%2!=0): print(A[int(N/2)]) if(N%2==0): print((A[int(N/2)-1]+A[int(N/2)])/2)