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