n=int(input()) a=list(map(int,input().split())) a=sorted(a) if n%2 != 0: print(a[n//2]) else: ans=(a[n//2]+a[n//2-1])/2 print(ans)