n=int(eval(input()))

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



v.sort()



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



for i in range(2,n):

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

  cnt=a

  

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

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



v.sort()



for i in range(1,n):

    v[i]=(v[i]+v[i-1])/2



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

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

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