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