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