num = int(input())
nums = input().split(" ")
nums3 = sorted(nums)
n = 0
for j in range(num-1):
  if j == 0:
    n = (int(nums3[j]) + int(nums3[j+1]))/2
  else:
    n = (n + int(nums3[j+1]))/2
print(n)