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