N = int(input())
values = [int(x) for x in input().split()]

combined_value = values[0]
sliced_values = values[1:]
for value in sliced_values:
  combined_value = (combined_value + value) / 2

print(round(combined_value, 5))