n = int(input()) a = list(map(int,input().split())) b = sorted(a) if n%2==1: c = (n-1)/2 print(b[c]) else: h = n/2 d = b[h-1] e = b[h] print((d+e)/2)