N=raw_input() A=raw_input() L=map(int, A.split()) L.sort() if len(L)%2==0: print float(L[(int(N)/2)-1]+L[int(N)/2])/2 else: print L[(int(N)/2)]