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