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