N = int(eval(input()))

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

for i in range(N - 1):

    v.sort()

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

    v = v[1:]

print((v[0]))
N = int(eval(input()))

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

for i in range(N - 1):

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

    v = v[1:]

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

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

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