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