N=int(input()) p=sorted(int(s) for s in input().split()) a=(N*2-1)//4 b=N//2 print((p[a]+p[b])/2)