n = gets.to_i
v = gets.split(" ").map(&:to_f).sort

p v

if n == 2
  	a = ((v[0] + v[1]) / 2)
  	puts a
  
else
  	for i in 1..n-1
		a = (v[0] + v[1]) / 2
  		v.unshift(a)
  		2.times{v.delete_at(1)}
    end	
  		puts v
end