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