n=int(eval(input()))

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



v.sort()

ans=v[0]

for i in range(n-1):

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

print(ans)
n = int(eval(input()))

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



v.sort()



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

for i in range(2, n):

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



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

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

-ans = v[0] -for i in range(n - 1): -    ans = (ans + v[i + 1]) / 2 -print(ans) +res = (v[0] + v[1]) / 2 +for i in range(2, n): +    res = (res + v[i]) / 2 +print(res)