n = gets.to_i
li = gets.split.map(&:to_i)
li.sort!
material = (li[0] + li[1]) / 2.0
if n < 3
  puts material
else
  for i in (2..n-1)
    material = (material + li[i]) / 2.0
  end
  puts material
end
