N, *V = list(map(int, open(0).read().split()))



V.sort()

a = [V[0]] + [V[i + 1] * 2 ** i for i in range(N - 1)]

print((sum(a) / (2 ** (N - 1))))





N = int(eval(input()))

X = list(map(int, input().split()))



X.sort()

ans = X[0] + X[1]

for i in range(2, N):

    ans += X[i] * 2 ** (i - 1)



print((ans / 2 ** (N - 1)))

N, *V = list(map(int, open(0).read().split()))
V.sort()
a = [V[0]] + [V[i + 1] * 2**i for i in range(N - 1)]
print((sum(a) / (2 ** (N - 1))))

N = int(eval(input()))
X = list(map(int, input().split()))
X.sort()
ans = X[0] + X[1]
for i in range(2, N):
    ans += X[i] * 2 ** (i - 1)
print((ans / 2 ** (N - 1)))

-N, *V = list(map(int, open(0).read().split())) -V.sort() -a = [V[0]] + [V[i + 1] * 2**i for i in range(N - 1)] -print((sum(a) / (2 ** (N - 1)))) +N = int(eval(input())) +X = list(map(int, input().split())) +X.sort() +ans = X[0] + X[1] +for i in range(2, N): +    ans += X[i] * 2 ** (i - 1) +print((ans / 2 ** (N - 1)))