N=int(input()) l = list(map(int, input().split())) l.sort() if N%2==0: print((l[N//2]+l[N//2-1])/2) else: print(l[N//2])