N = int(eval(input()))

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

V = sorted(V)

merged_v = (V[0]+ V[1]) / 2

for i in range(2, N):

    merged_v = (merged_v + V[i]) / 2

print(merged_v)

N = int(eval(input()))

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

sort_v = sorted(v)

ans = sort_v[0]

for i in range(1, N):

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

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

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

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