while true
    n = gets.to_i
    break if n == 0
    
    list = gets.chomp.split(" ").map &:to_f
    average = list.inject(:+)/n
    
    d = 0.0
    list.each { |point| d += (point-average)**2 }
    
    d /= n
    puts d**0.5
end