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