n = int(eval(input()))

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



v = sorted(v)

p = v[0]

for i in range(1, n):

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

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

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



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 = sorted(v)
p = v[0]
for i in range(1, n):
    p = (v[i] + p) / 2
print(p)

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

-v = list(map(int, input().split())) -v = sorted(v) -p = v[0] +v = sorted(list(map(int, input().split()))) +ans = v[0] -    p = (v[i] + p) / 2 -print(p) +    ans = (ans + v[i]) / 2 +print(ans)