import math N=int(input()) A=list(map(int,input().split())) A.sort() x=math.ceil(N/2) y=N//2-1 if N%2==0: print((A[x]+A[y])/2) else: print(A[N//2])