a = 0 gets.to_i.times { a += gets.to_f} puts sprintf("%.10f", a)