ARGF.each do |line|
  break if line =~ /^0$/
  points = gets.split.map(&:to_f)

  avg = points.inject(:+) / points.size

  a = points.inject(0){|ret, p| ret + (p - avg)**2 / points.size }
  
  puts Math.sqrt(a)
end