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