import itertools

n = int(input())
v = map(int, input().split())
num = 0

for i in itertools.permutations(v):
  count = i[0]
  for j in range(1, n):
    count = (count + i[j])/2

  num = max(num, count)

print(num)
