n = int(eval(input()))

v = sorted(list(map(int, input().split())))



while len(v) > 1:

    new_v = (v[0]+v[1]) / 2

    del v[0:2]

    v = [new_v]+v



print((v[0]))

n = int(eval(input()))

v = sorted(list(map(int, input().split())))



ans = (v[0]+v[1])/2

for i in range(2,n):

    ans = (ans+v[i])/2

print(ans)

n = int(eval(input()))
v = sorted(list(map(int, input().split())))
while len(v) > 1:
    new_v = (v[0] + v[1]) / 2
    del v[0:2]
    v = [new_v] + v
print((v[0]))

n = int(eval(input()))
v = sorted(list(map(int, input().split())))
ans = (v[0] + v[1]) / 2
for i in range(2, n):
    ans = (ans + v[i]) / 2
print(ans)

-while len(v) > 1: -    new_v = (v[0] + v[1]) / 2 -    del v[0:2] -    v = [new_v] + v -print((v[0])) +ans = (v[0] + v[1]) / 2 +for i in range(2, n): +    ans = (ans + v[i]) / 2 +print(ans)