n = int(eval(input()))

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



v.sort()



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



for i in range(2, n):

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





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

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)

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