loop do
  n = gets.chomp.to_i
  break if n == 0

  scores = gets.chomp.split.map(&:to_f)

  m = scores.inject(&:+) / scores.length

  sigma = scores.map { |s_i| (s_i - m) **2 }.sum

  puts Math.sqrt(sigma / n)
end

