while (n = gets.to_i) != 0 do
  points = gets.split.map(&:to_f)
  ave = points.inject{|sum, i| sum + i} / n
  a = 0
  for point in points do
    a += (point - ave) ** 2
  end
  puts sprintf("%.6f", Math.sqrt(a/ n))
end