while (times = gets.to_f) != 0
  date = gets.split(" ").map(&:to_f)
  ave = date.inject(:+) / times
  sum = 0
  for i in 0...times
    sum += (date[i]-ave)**2
  end
  s = Math.sqrt(sum/times)
  puts s
end