n = int(eval(input()))

a = [int(i) for i in input().split()]

a.sort()



s = a[0]

for i in range(n):

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

  

print(s)
### 138-c

n = int(eval(input()))

v = [int(i) for i in input().split()]



v.sort()

ans = v[0]

for i in range(1,n):

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

print(ans)
n = int(eval(input()))
a = [int(i) for i in input().split()]
a.sort()
s = a[0]
for i in range(n):
    s = (s + a[i]) / 2
print(s)

### 138-c
n = int(eval(input()))
v = [int(i) for i in input().split()]
v.sort()
ans = v[0]
for i in range(1, n):
    ans = (ans + v[i]) / 2
print(ans)

+### 138-c -a = [int(i) for i in input().split()] -a.sort() -s = a[0] -for i in range(n): -    s = (s + a[i]) / 2 -print(s) +v = [int(i) for i in input().split()] +v.sort() +ans = v[0] +for i in range(1, n): +    ans = (ans + v[i]) / 2 +print(ans)