_ = gets.to_i
items = gets.chomp.split(' ').map(&:to_f).sort
while items.count > 1
  new_item = (items[0] + items[1]) / 2.0
  items.delete_at(0)
  items.delete_at(0)
  items.unshift(new_item)
end
puts items[0]