n = int(eval(input()))

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



v.sort()



a = v[0]



for i in range(1, n):

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





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

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

v.sort()

ans = v[0]

for i in range(1, n):

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

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

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

-a = v[0] +ans = v[0] -    a = (a + v[i]) / 2 -print(a) +    ans = (ans + v[i]) / 2 +print(ans)