n = int(input()) m = sorted(map(int, input().split())) print(sum(m[(n-1)//2:n//2+1])/(2>>n%2))