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