i=input M,A=int(i())//2,sorted(map(int,i().split())) print((A[M]+A[-M-1])/2)