import java.util.Scanner;
public class Main{
public static void main(String[] args){
try (Scanner sc = new Scanner(System.in)){
while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
}
}
}
} import java.util.Scanner; Scanner java.util public class Main{
public static void main(String[] args){
try (Scanner sc = new Scanner(System.in)){
while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
}
}
}
} Main public static void main(String[] args){
try (Scanner sc = new Scanner(System.in)){
while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
}
}
} main {
try (Scanner sc = new Scanner(System.in)){
while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
}
}
} try (Scanner sc = new Scanner(System.in)){
while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
}
} {
while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
}
} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
} true {
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
} int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc if(n == 0){
break;
} n == 0 n 0 {
break;
} break; int[] score = new int[n]; score new int[n] n for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
} int i = 0; int i = 0; i 0 i< score.length i score.length score score.length i++ i++ i {
score[i] = sc.nextInt();
} {
score[i] = sc.nextInt();
} score[i] = sc.nextInt() score[i] score i sc.nextInt() sc.nextInt sc double avg = 0 avg 0 var = 0 var 0 tot = 0; tot 0 int sum = 0; sum 0 for(int i = 0; i<score.length; i++){
sum = sum + score[i];
} int i = 0; int i = 0; i 0 i<score.length i score.length score score.length i++ i++ i {
sum = sum + score[i];
} {
sum = sum + score[i];
} sum = sum + score[i] sum sum + score[i] sum score[i] score i avg = (double) sum / n avg (double) sum / n (double) sum n for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
} int i = 0; int i = 0; i 0 i<score.length i score.length score score.length i++ i++ i {
tot = tot + (score[i] - avg) * (score[i] - avg);
} {
tot = tot + (score[i] - avg) * (score[i] - avg);
} tot = tot + (score[i] - avg) * (score[i] - avg) tot tot + (score[i] - avg) * (score[i] - avg) tot (score[i] - avg) * (score[i] - avg) (score[i] - avg) score[i] score i avg (score[i] - avg) score[i] score i avg var = tot / n var tot / n tot n System.out.println(Math.sqrt(var)) System.out.println System.out System System.out Math.sqrt(var) Math.sqrt Math var String[] args args public class Main{
public static void main(String[] args){
try (Scanner sc = new Scanner(System.in)){
while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
}
}
}
} public class Main{
public static void main(String[] args){
try (Scanner sc = new Scanner(System.in)){
while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
}
}
}
} Main
import java.util.Scanner;
public class Main{
public static void main(String[] args){
try (Scanner sc = new Scanner(System.in)){
while(true){
int n = sc.nextInt();
if(n == 0){
break;
}
int[] score = new int[n];
for(int i = 0; i< score.length; i++){
score[i] = sc.nextInt();
}
double avg = 0, var = 0, tot = 0;
int sum = 0;
for(int i = 0; i<score.length; i++){
sum = sum + score[i];
}
avg = (double) sum / n;
for(int i = 0; i<score.length; i++){
tot = tot + (score[i] - avg) * (score[i] - avg);
}
var = tot / n;
System.out.println(Math.sqrt(var));
}
}
}
}
