N=int(input()) A=sorted(map(int,input().split())) print(A[N//2]if N%2 else(A[N//2-1]+A[N//2])/2)