while l = gets
    n = l.chomp.to_i
    break if n == 0
    
    s = gets.split.map(&:to_f)
    m = s.inject(:+) / n
    
    sum = s.inject(0){|sum, i| sum + (i - m) ** 2 }
    puts Math.sqrt(sum / n)
end

