import math

while True:
    n = int(input())
    if not n:
        break
    s = list(map(int, input().split()))[:n]
    m = sum(s)/n
    a2 = sum((si-m)**2 for si in s) / n
    a = math.sqrt(a2)
    print(a)
