N = int(input())
A = sorted(list(map(int, input().split())))
l = []

for i in range(N):
  l.append(2**(i))

l = sorted(l, reverse = True)
  
array_multiple = list(map(lambda x,n: x/n, A, l))

print(sum(array_multiple))