N = int(input()) A = (input()).split() A.sort() ans = ( int(A[ (2*N+1)//4 ]) + int(A[ (2*N-1)//4 ]) )/ 2 print(ans)