n = int(input())
v = sorted(list(map(int, input().split())), reverse=True)
ans = 0
print(v)
for i, j in enumerate(v):
  if i!=len(v)-1:
    ans += j/(2**(i+1))
  else:
    ans += j/(2**(i))
print(ans)