import math n=int(input()) a=list(map(int,input().split())) a.sort() m = math.floor(n/2)+1 if n%2!=0: print(a[m-1]) else: print((a[m-2]+a[m-1])/2)