#include <iostream>
#include <math.h>
#include <stdio.h>
#include <vector>
using namespace std;

int main() {
  vector<int> v(100, 0);
  int i, n, sum;
  double a = 0;

  while (cin >> n, n != 0) {
    for (i = 0; i < n; i++) {
      cin >> v[i];
      sum += v[i];
    }

    double m = (double)sum / (double)n;

    for (i = 0; i < n; i++) {
      a += pow((v[i] - m), 2) / n;
    }
    printf("%.8f\\n", sqrt(a));
    a = 0;
    sum = 0;
    v.erase(v.begin(), v.end());
  }

  return 0;
}

#include <iostream>
#include <math.h>
#include <stdio.h>
#include <vector>
using namespace std;

int main() {
  vector<int> v(1024, 0);
  int i, n, sum;
  double a = 0;

  while (cin >> n, n != 0) {
    for (i = 0; i < n; i++) {
      cin >> v[i];
      sum += v[i];
    }

    double m = (double)sum / (double)n;

    for (i = 0; i < n; i++) {
      a += pow((v[i] - m), 2) / n;
    }
    printf("%.8f\\n", sqrt(a));
    a = 0;
    sum = 0;
    v.erase(v.begin(), v.end());
  }

  return 0;
}


#include <cmath>
#include <cstdio>
int pro[101];

int main() {
  int n, s[101];
  while (scanf("%d", &n), n) {
    double m = 0, t = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &s[i]);
      m += s[i];
    }
    m /= n;
    for (int i = 0; i < n; i++) {
      t += (s[i] - m) * (s[i] - m);
    }
    t /= n;
    printf("%f\\n", sqrt(t));
  }
  return 0;
}

#include <cmath>
#include <cstdio>
int pro[1001];

int main() {
  int n, s[1001];
  while (scanf("%d", &n), n) {
    double m = 0, t = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &s[i]);
      m += s[i];
    }
    m /= n;
    for (int i = 0; i < n; i++) {
      t += (s[i] - m) * (s[i] - m);
    }
    t /= n;
    printf("%f\\n", sqrt(t));
  }
  return 0;
}


#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
  int n;
  long double ave;      //??????
  long double sum1 = 0; //????¨????
  long double sum2 = 0;
  int s[100] = {0}; //??????
  long double a;    //?????£

  while (1) {
    cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      sum1 += s[i];
    }
    ave = sum1 / n;
    for (int i = 0; i < n; i++)
      sum2 += (s[i] - ave) * (s[i] - ave);

    a = sum2 / n;
    cout << fixed << setprecision(6) << sqrt(a) << endl;
    sum1 = 0;
    sum2 = 0;
    ave = 0;
  }
}

#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
  int n;
  long double ave;      //??????
  long double sum1 = 0; //????¨????
  long double sum2 = 0;
  int s[1000] = {0}; //??????
  long double a;     //?????£

  while (1) {
    cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      sum1 += s[i];
    }
    ave = sum1 / n;
    for (int i = 0; i < n; i++)
      sum2 += (s[i] - ave) * (s[i] - ave);

    a = sum2 / n;
    cout << fixed << setprecision(6) << sqrt(a) << endl;
    sum1 = 0;
    sum2 = 0;
    ave = 0;
  }
}


#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main(void) {
  int n;
  int s[100] = {};
  double m, a;

  while (true) {
    m = 0;
    a = 0;
    cin >> n;

    if (n == 0)
      break;

    for (int i = 0; i < n; ++i) {
      cin >> s[i];
      m += s[i];
    }
    m /= n;

    for (int i = 0; i < n; ++i) {
      a += (s[i] - m) * (s[i] - m);
    }
    a /= n;

    printf("%lf\\n", sqrt(a));
  }

  return 0;
}

#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main(void) {
  int n;
  int s[1000] = {};
  double m, a;

  while (true) {
    m = 0;
    a = 0;
    cin >> n;

    if (n == 0)
      break;

    for (int i = 0; i < n; ++i) {
      cin >> s[i];
      m += s[i];
    }
    m /= n;

    for (int i = 0; i < n; ++i) {
      a += (s[i] - m) * (s[i] - m);
    }
    a = sqrt(a / n);

    printf("%lf\\n", a);
  }

  return 0;
}


#include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  double point, a, n, s[100], m; // a標準偏差 n学生の数
  while (1) {
    m = 0;
    point = 0;
    cin >> n;
    if (n == 0)
      break;
    a = 0;

    for (int i = 0; i < n; i++) {
      cin >> s[i];
      point += s[i];
    }

    m = point / n;

    for (int i = 0; i < n; i++) {
      a += pow(s[i] - m, 2);
    }
    a = sqrt(a / n);
    printf("%f\\n", a);
  }

  return 0;
}

#include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  double point, a, n, s[1000], m; // a標準偏差 n学生の数
  while (1) {
    m = 0;
    point = 0;
    cin >> n;
    if (n == 0)
      break;
    a = 0;

    for (int i = 0; i < n; i++) {
      cin >> s[i];
      point += s[i];
    }

    m = point / n;

    for (int i = 0; i < n; i++) {
      a += pow(s[i] - m, 2);
    }
    a = sqrt(a / n);
    printf("%f\\n", a);
  }

  return 0;
}


#include <iomanip>
#include <iostream>
#include <math.h>

using namespace std;

int main() {
  double n, a[100], sum, sig;
  while (1) {
    sum = 0;
    sig = 0;
    cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    for (int i = 0; i < n; i++) {
      sig += pow(a[i] - sum / n, 2);
    }
    cout << fixed << setprecision(6) << sqrt(sig / n) << endl;
  }
  return 0;
}

#include <iomanip>
#include <iostream>
#include <math.h>

using namespace std;

int main() {
  double n, a[1000], sum, sig;
  while (1) {
    sum = 0;
    sig = 0;
    cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    for (int i = 0; i < n; i++) {
      sig += pow(a[i] - sum / n, 2);
    }
    cout << fixed << setprecision(6) << sqrt(sig / n) << endl;
  }
  return 0;
}


#include <math.h>
#include <stdio.h>

int main() {

  int s[101];
  int n, sum = 0, i;
  double ave = 0, ans2, ans1;

  for (;;) {

    scanf("%d", &n);

    if (n == 0) {
      break;
    }

    for (i = 1; i <= n; i++) {

      scanf("%d", &s[i]);

      sum += s[i];
    }

    ave = (double)sum / n;

    for (i = 1; i <= n; i++) {

      ans1 += (s[i] - ave) * (s[i] - ave);
    }

    ans2 = sqrt(ans1 / n);

    printf("%lf\\n", ans2);

    sum = 0;
    ave = 0;
    ans1 = 0;
    ans2 = 0;
  }
  return 0;
}

#include <math.h>
#include <stdio.h>

int main() {

  int s[1001];
  long long n, sum = 0, i;
  double ave = 0, ans2, ans1;

  for (;;) {

    scanf("%lld", &n);

    if (n == 0) {
      break;
    }

    for (i = 1; i <= n; i++) {

      scanf("%d", &s[i]);

      sum += s[i];
    }

    ave = (double)sum / n;

    for (i = 1; i <= n; i++) {

      ans1 += (s[i] - ave) * (s[i] - ave);
    }

    ans2 = sqrt(ans1 / n);

    printf("%lf\\n", ans2);

    sum = 0;
    ave = 0;
    ans1 = 0;
    ans2 = 0;
  }
  return 0;
}


#include <algorithm>
#include <cctype>
#include <math.h>
#include <stdio.h>
#include <string.h>

#define PI 3.1415926

int main() {
  int n, s[101];
  double sum = 0;
  double a2 = 0;
  while (1) {

    scanf("%d", &n);
    if (n == 0) {
      break;
    }
    for (int i = 1; i <= n; i++) {
      scanf("%d", &s[i]);
      sum += s[i];
    }

    sum /= n;

    for (int i = 1; i <= n; i++) {
      a2 += (s[i] - sum) * (s[i] - sum);
    }
    printf("%f\\n", sqrt(a2 / n));
    sum = 0;
    a2 = 0;
  }
  return 0;
}

#include <algorithm>
#include <cctype>
#include <math.h>
#include <stdio.h>
#include <string.h>

#define PI 3.1415926

int main() {
  int n, s[2000];
  double sum = 0;
  double a2 = 0;
  while (1) {

    scanf("%d", &n);
    if (n == 0) {
      break;
    }
    for (int i = 1; i <= n; i++) {
      scanf("%d", &s[i]);
      sum += s[i];
    }

    sum /= n;

    for (int i = 1; i <= n; i++) {
      a2 += (s[i] - sum) * (s[i] - sum);
    }
    printf("%f\\n", sqrt(a2 / n));
    sum = 0;
    a2 = 0;
  }
  return 0;
}


#include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;

int main(void) {
  // Here your code !
  int n, s[100];
  double m, A;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    m = 0;
    A = 0;
    for (int i = 0; i < n; i++) {

      cin >> s[i];
      m = m + s[i];
    }
    m = m / n;

    for (int i = 0; i < n; i++) {

      A = A + pow((s[i] - m), 2);
    }
    A = A / n;
    A = sqrt(A);
    printf("%f\\n", A);
  }
}

#include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;

int main(void) {
  // Here your code !
  int n, s[1000];
  double m, A;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    m = 0;
    A = 0;
    for (int i = 0; i < n; i++) {

      cin >> s[i];
      m = m + s[i];
    }
    m = m / n;

    for (int i = 0; i < n; i++) {

      A = A + pow((s[i] - m), 2);
    }
    A = A / n;
    A = sqrt(A);
    printf("%f\\n", A);
  }
}


#include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  int n, s, count = 0;
  double S[100], m, sigma = 0, a;
  cin >> n;
  while (true) {
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> s;
      S[i] = s;
      count += s;
    }
    m = count / n;
    for (int i = 0; i < n; i++) {
      sigma += (S[i] - m) * (S[i] - m);
    }
    a = sqrt(sigma / n);
    printf("%f\\n", a);
  }
  return 0;
}

#include <cmath>
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
  int n, S[1000] = {};
  while (true) {
    int count = 0;
    double m, sigma = 0, a;
    cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> S[i];
      count += S[i];
    }
    m = 1.0 * count / n;
    for (int i = 0; i < n; i++) {
      sigma += (S[i] - m) * (S[i] - m);
    }
    a = sqrt(sigma / n);
    printf("%f\\n", a);
  }
  return 0;
}


#include <math.h>
#include <stdio.h>
#include <string.h>
#define rep(i, a, n) for (int i = a; i < n; i++)

int main() {
  int n;
  while (1) {
    scanf("%d", &n);
    if (n == 0)
      break;
    double s[101] = {0}, ave = 0, a = 0;
    rep(i, 0, n) {
      scanf("%lf", &s[i]);
      ave += s[i];
    }
    ave /= (double)n;
    rep(i, 0, n) { a += pow(s[i] - ave, 2); }
    a /= (double)n;
    a = sqrt(a);
    printf("%.10lf\\n", a);
  }
  return 0;
}

#include <math.h>
#include <stdio.h>
#include <string.h>
#define rep(i, a, n) for (int i = a; i < n; i++)

int main() {
  int n;
  while (1) {
    scanf("%d", &n);
    if (n == 0)
      break;
    double s[1001] = {0}, ave = 0, a = 0;
    rep(i, 0, n) {
      scanf("%lf", &s[i]);
      ave += s[i];
    }
    ave /= (double)n;
    rep(i, 0, n) { a += pow(s[i] - ave, 2); }
    a /= (double)n;
    a = sqrt(a);
    printf("%.10lf\\n", a);
  }
  return 0;
}


#include <math.h>
#include <stdio.h>

int main() {
  int n;
  scanf("%d", &n);
  int i, score[1001];
  for (i = 0; i < n; i++) {
    scanf("%d", score[i]);
  }
  int alltotal = 0;
  for (i = 0; i < n; i++) {
    alltotal += score[i];
  }
  double avrage = 1.0 * alltotal / n;
  double bload[1001];
  for (i = 0; i < n; i++) {
    bload[i] = powl(score[i] - avrage, 2);
  }
  double allbload = 0.0;
  for (i = 0; i < n; i++) {
    allbload += bload[i];
  }
  double bunsan = allbload / n;
  printf("%lf\\n", sqrt(bunsan));
}

#include <math.h>
#include <stdio.h>

int main() {
  while (1) {
    int n;
    scanf("%d", &n);
    if (n == 0)
      break;
    int i, score[1001];
    for (i = 0; i < n; i++) {
      scanf("%d", &score[i]);
    }
    int alltotal = 0;
    for (i = 0; i < n; i++) {
      alltotal += score[i];
    }
    double avrage = 1.0 * alltotal / n;
    double bload[1001];
    for (i = 0; i < n; i++) {
      bload[i] = powl(score[i] - avrage, 2);
    }
    double allbload = 0.0;
    for (i = 0; i < n; i++) {
      allbload += bload[i];
    }
    double bunsan = allbload / n;
    printf("%lf\\n", sqrt(bunsan));
  }
  return 0;
}


#include <algorithm>
#include <math.h>
#include <stdio.h>
#include <string.h>
using namespace std;
int main() {
  int n;
  while (scanf("%d", &n) != EOF) {
    if (n == 0)
      break;
    double a[100];
    double m = 0;
    for (int i = 0; i < n; i++) {
      scanf("%lf", &a[i]);
      m = m + a[i];
    }
    m = m / n;
    double b = 0;
    for (int i = 0; i < n; i++) {
      b = b + (a[i] - m) * (a[i] - m);
    }
    printf("%.8lf\\n", sqrt(b / n));
  }
}

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, d, i, j, k;

  float hudai, hudai2;
  int x[1002];

  while (1)

  {
    double sum = 0;
    double avg = 0;
    double total = 0;
    double devt = 0;
    cin >> a;
    if (a == 0) {
      break;
    }

    for (i = 0; i < a; i++) {
      cin >> x[i];
      sum = sum + x[i];
    }
    hudai2 = a * 1.0;
    avg = (sum / a);

    for (i = 0; i < a; i++) {
      total = total + ((x[i] - avg) * (x[i] - avg));
    }
    hudai = total / a;
    devt = sqrt(hudai);

    printf("%.8f\\n", devt);
  }
  return 0;
}


#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  int n, s[100];
  while (1) {
    double a = 0;
    cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      a += s[i];
    }
    double b = a / n;
    double c = 0;
    for (int i = 0; i < n; i++) {
      c += pow(b - s[i], 2.0);
    }
    double d = 0;
    d = sqrt(c / n);
    printf("%.8f\\n", d);
  }
  return 0;
}

#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  int n, s[1001];
  while (1) {
    double a = 0;
    cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      a += s[i];
    }
    double b = a / n;
    double c = 0;
    for (int i = 0; i < n; i++) {
      c += pow(b - s[i], 2.0);
    }
    double d = 0;
    d = sqrt(c / n);
    printf("%.8f\\n", d);
  }
  return 0;
}


// class point	の練習（クラスの高度な実装）
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <vector>

typedef long long llong;
using namespace std;

int main() {
  int n;
  int score[150];
  double mean, var;
  while (1) {
    scanf("%d", &n);
    if (!n)
      break;
    mean = 0;
    var = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &score[i]);
      mean += (double)score[i];
    }
    mean /= n;
    for (int i = 0; i < n; i++) {
      var += ((double)score[i] - mean) * ((double)score[i] - mean);
    }
    var /= n;
    cout << fixed << setprecision(10) << sqrt(var) << endl;
  }
  return 0;
}

// class point	の練習（クラスの高度な実装）
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <vector>

typedef long long llong;
using namespace std;

int main() {
  int n;
  int score[1100];
  double mean, var;
  while (1) {
    scanf("%d", &n);
    if (!n)
      break;
    mean = 0;
    var = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &score[i]);
      mean += (double)score[i];
    }
    mean /= n;
    for (int i = 0; i < n; i++) {
      var += ((double)score[i] - mean) * ((double)score[i] - mean);
    }
    var /= n;
    cout << fixed << setprecision(10) << sqrt(var) << endl;
  }
  return 0;
}


#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int n;
  const int max_n = 100;
  double a[max_n];
  while (cin >> n, n) {
    double s = 0.0;
    double sum = 0.0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    double m = sum / n;
    for (int i = 0; i < n; i++) {
      s += pow(a[i] - m, 2);
    }
    s /= n;
    s = sqrt(s);
    printf("%.6f\\n", s);
  }
  return 0;
}

#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int n;
  const int max_n = 1000;
  double a[max_n];
  while (cin >> n, n) {
    double s = 0.0;
    double sum = 0.0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      sum += a[i];
    }
    double m = sum / n;
    for (int i = 0; i < n; i++) {
      s += pow(a[i] - m, 2);
    }
    s /= n;
    s = sqrt(s);
    printf("%.6f\\n", s);
  }
  return 0;
}


#include <cmath>
#include <cstdio>
#include <iostream>

using namespace std;
typedef long long ll;

int main() {
  int n;
  int score[100];
  double stdev;

  double a;

  while (true) {
    double sum1 = 0, sum2 = 0, ave = 0;

    cin >> n;
    if (n == 0) {
      break;
    } else {
      for (int i = 0; i < n; ++i) {
        cin >> score[i];
        sum1 = sum1 + score[i];
      }
      ave = sum1 / n;
      for (int i = 0; i < n; ++i) {
        a = score[i] - ave;
        a = a * a;
        sum2 = sum2 + a;
      }
      stdev = sum2 / n;
      stdev = sqrt(stdev);
    }
    printf("%.15lf\\n", stdev);
  }
}

#include <cmath>
#include <cstdio>
#include <iostream>

using namespace std;
typedef long long ll;

int main() {
  int n;
  int score[1000];
  double stdev;

  double a;

  while (true) {
    double sum1 = 0, sum2 = 0, ave = 0;

    cin >> n;
    if (n == 0) {
      break;
    } else {
      for (int i = 0; i < n; ++i) {
        cin >> score[i];
        sum1 = sum1 + score[i];
      }
      ave = sum1 / n;
      for (int i = 0; i < n; ++i) {
        a = score[i] - ave;
        a = a * a;
        sum2 = sum2 + a;
      }
      stdev = sum2 / n;
      stdev = sqrt(stdev);
    }
    printf("%.15lf\\n", stdev);
  }
}


#include <iomanip>
#include <iostream>
#include <math.h>

#define PI 3.14159265

double standard_deviation(double *s, double m, double n) {
  double sum_ = 0;
  for (int i = 0; i < n; i++) {
    sum_ += pow((s[i] - m), 2);
  }
  return sum_ / n;
}

int main() {
  double n;
  double s[100] = {0};
  double m = 0;

  while (true) {
    m = 0;
    std::cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      std::cin >> s[i];
      m += s[i];
    }
    m /= n;

    std::cout << std::fixed << std::setprecision(8)
              << sqrt(standard_deviation(s, m, n)) << std::endl;
  }

  return 0;
}

#include <iomanip>
#include <iostream>
#include <math.h>

#define PI 3.14159265

double standard_deviation(double *s, double m, double n) {
  double sum_ = 0;
  for (int i = 0; i < n; i++) {
    sum_ += pow((s[i] - m), 2);
  }
  return sum_ / n;
}

int main() {
  double n;
  double s[1000] = {0};
  double m = 0;

  while (true) {
    m = 0;
    std::cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      std::cin >> s[i];
      m += s[i];
    }
    m /= n;

    std::cout << std::fixed << std::setprecision(8)
              << sqrt(standard_deviation(s, m, n)) << std::endl;
  }

  return 0;
}


#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;

int main() {
  int n, count = 1, j = 0;
  double m;
  std::vector<double> A(10, 0);
  cin >> n;
  int s[n + 1];
  while (n != 0) {
    m = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      m += s[i];
    }

    m /= (double)n;

    for (int i = 0; i < n; i++)
      A[j] += pow((s[i] - m), 2) / n;

    A[j] = sqrt(A[j]);
    cin >> n;
    j++;
  }

  for (int i = 0; i < j; i++)
    cout << std::fixed << std::setprecision(8) << A[i] << endl;

  return 0;
}

#include <bits/stdc++.h>
using std::cin;
using std::cout;
using std::endl;

int main() {
  int n, count = 1, j = 0;
  double m;
  std::vector<double> A(10, 0);
  cin >> n;
  while (n != 0) {
    int s[n];
    m = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      m += s[i];
    }

    m /= (double)n;

    for (int i = 0; i < n; i++)
      A[j] += pow((s[i] - m), 2) / n;

    A[j] = sqrt(A[j]);
    cin >> n;
    if (++j == count * 10) {
      count++;
      A.resize(count * 10);
    }
  }

  for (int i = 0; i < j; i++)
    cout << std::fixed << std::setprecision(8) << A[i] << endl;

  return 0;
}


#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;

int main() {
  double n, m, points[1000], sum = 0, elSum = 0;

  while (true) {
    cin >> n;
    for (int i = 0; i < n; i++) {
      cin >> points[i];
      sum += points[i];
    }

    m = sum / n;

    for (int i = 0; i < n; i++) {
      elSum += pow(points[i] - m, 2);
    }
    cout << fixed << setprecision(6) << sqrt(elSum / n);
  }

  return 0;
}

#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;

int main() {
  double n, m, points[1000], sum, elSum;

  while (true) {
    sum = 0;
    elSum = 0;
    cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> points[i];
      sum += points[i];
    }

    m = sum / n;

    for (int i = 0; i < n; i++) {
      elSum += pow(points[i] - m, 2);
    }
    cout << fixed << setprecision(6) << sqrt(elSum / n) << endl;
  }

  return 0;
}


#include <cmath>
#include <cstdio>

int main() {
  double n, s[101], m, sum, var, dev;
  while (1) {
    sum = 0.0, var = 0.0, m = 0.0, dev = 0.0;
    scanf("%lf", &n);
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      scanf("%lf", &s[i]);
      sum += s[i];
    }
    m = sum / n;
    for (int i = 0; i < n; i++)
      var += (s[i] - m) * (s[i] - m);
    dev = sqrt(var / n);
    printf("%.8lf\\n", dev);
  }

  return 0;
}

#include <cmath>
#include <cstdio>
int s[1000];

int main() {
  int n;
  double m, sum, var, dev;
  while (1) {
    sum = 0.0, var = 0.0, m = 0.0, dev = 0.0;
    scanf("%d", &n);
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      scanf("%d", &s[i]);
      sum += s[i];
    }
    m = sum / n;
    for (int i = 0; i < n; i++)
      var += (s[i] - m) * (s[i] - m);
    dev = sqrt(var / n);
    printf("%.8lf\\n", dev);
  }

  return 0;
}


#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;

int main() {
  int n, s[100], i, j;
  double a, m;
  while (1) {
    cin >> n;
    if (!n)
      break;
    m = a = 0;
    for (i = 0; i < n; i++) {
      cin >> s[i];
      m += s[i];
    }
    m /= n;
    for (i = 0; i < n; i++) {
      a += (s[i] - m) * (s[i] - m);
    }
    a = sqrt(a / n);
    cout << fixed << setprecision(6) << a << endl;
  }
  return 0;
}

#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;

int main() {
  int n, s[1000], i, j;
  double a, m;
  while (1) {
    cin >> n;
    if (!n)
      break;
    m = a = 0;
    for (i = 0; i < n; i++) {
      cin >> s[i];
      m += s[i];
    }
    m /= n;
    for (i = 0; i < n; i++) {
      a += (s[i] - m) * (s[i] - m);
    }
    a = sqrt(a / n);
    cout << fixed << setprecision(6) << a << endl;
  }
  return 0;
}


#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;

int main() {
  while (1) {
    int n;
    cin >> n;
    if (n == 0)
      break;
    int s[n];
    for (int i; i < n; i++) {
      cin >> s[i];
    }

    int sum = 0;
    for (int i; i < n; i++) {
      sum += s[i];
    }
    double mean = 1.0 * sum / n;
    double var = 0.0;
    for (int i; i < n; i++) {
      var += 1.0 * (s[i] - mean) * (s[i] - mean);
    }
    double SD = sqrt(1.0 * var / n);
    printf("%f\\n", SD);
  }
  return 0;
}

#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;

int main() {
  while (1) {
    int n;
    cin >> n;
    if (n == 0)
      break;
    int s[n];
    for (int i = 0; i < n; i++) {
      cin >> s[i];
    }

    int sum = 0;
    for (int i = 0; i < n; i++) {
      sum += s[i];
    }
    double mean = 1.0 * sum / n;
    double var = 0.0;
    for (int i = 0; i < n; i++) {
      var += 1.0 * (s[i] - mean) * (s[i] - mean);
    }
    double SD = sqrt(1.0 * var / n);
    printf("%f\\n", SD);
  }
  return 0;
}


#include <cmath>
#include <iostream>
#include <string>
using namespace std;

int main() {
  int n;
  float m, tmp;
  int s[100] = {};
  while (true) {
    cin >> n;
    if (n == 0)
      break;
    m = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      m += s[i];
    }
    m /= n;
    tmp = 0;
    for (int i = 0; i < n; i++) {
      tmp += (s[i] - m) * (s[i] - m);
    }
    cout << sqrt(tmp / n) << endl;
  }
}

#include <cmath>
#include <iostream>
#include <string>
using namespace std;

int main() {
  int n;
  float m, tmp;
  int s[1000] = {};
  while (true) {
    cin >> n;
    if (n == 0)
      break;
    m = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      m += s[i];
    }
    m /= n;
    tmp = 0;
    for (int i = 0; i < n; i++) {
      tmp += (s[i] - m) * (s[i] - m);
    }
    cout << sqrt(tmp / n) << endl;
  }
}


#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;

int main() {
  int n, s[110];
  double ave, sum, alpha;
  while (1) {
    ave = 0;
    sum = 0;
    alpha = 0;
    cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      sum += s[i];
    }
    ave = sum / n;

    for (int i = 0; i < n; i++) {
      alpha += (s[i] - ave) * (s[i] - ave);
    }
    alpha /= n;
    alpha = sqrt(alpha);
    cout << fixed << setprecision(6) << alpha << endl;
  }
  return 0;
}

#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;

int main() {
  int n, s[1010];
  double ave, sum, alpha;
  while (1) {
    ave = 0;
    sum = 0;
    alpha = 0;
    cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      sum += s[i];
    }
    ave = sum / n;

    for (int i = 0; i < n; i++) {
      alpha += (s[i] - ave) * (s[i] - ave);
    }
    alpha /= n;
    alpha = sqrt(alpha);
    cout << fixed << setprecision(6) << alpha << endl;
  }
  return 0;
}


#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>

using namespace std;

int main() {

  int n, s[100];
  double m, a2;
  while (1) {
    scanf("%d\\n", &n);
    if (n == 0)
      return 0;
    m = 0;
    a2 = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &s[i]);
      m += s[i];
    }
    m /= n;
    for (int i = 0; i < n; i++) {
      a2 += pow(s[i] - m, 2);
    }
    printf("%.8lf\\n", sqrt(a2 / n));
  }
}

#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>

using namespace std;

int main() {

  int n, s[1000];
  double m, a2;
  while (1) {
    scanf("%d\\n", &n);
    if (n == 0)
      return 0;
    m = 0;
    a2 = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &s[i]);
      m += s[i];
    }
    m /= n;
    for (int i = 0; i < n; i++) {
      a2 += pow(s[i] - m, 2);
    }
    printf("%.8lf\\n", sqrt(a2 / n));
  }
}


//
//  main.cpp
//  ITP1_10-C
//
//  Created by Saicj on 2015/08/05.
//  Copyright (c) 2015??´ saicj. All rights reserved.
//

#include <cmath>
#include <iostream>
#include <vector>

using namespace std;

int main(int argc, const char *argv[]) {

  int n;
  cin >> n;

  int num;

  std::vector<int> nums;

  while (n != 0) {

    for (int i = 0; i < n; i++) {

      cin >> num;
      nums.push_back(num);
    }

    int sum = 0;

    for (int i = 0; i < nums.size(); i++) {
      sum += nums[i];
    }

    int m = sum / nums.size();

    //        cout << m << endl;

    int mSum = 0;
    for (int i; i < n; i++) {
      mSum += pow(nums[i] - m, 2);
    }

    double result = sqrt(mSum / n);

    cout << result << endl;

    nums.clear();
  }

  return 0;
}

//
//  main.cpp
//  ITP1_10-C
//
//  Created by Saicj on 2015/08/05.
//  Copyright (c) 2015??´ saicj. All rights reserved.
//

#include <cmath>
#include <cstdio>
#include <iostream>
#include <vector>

using namespace std;

int main(int argc, const char *argv[]) {

  double n;

  double num;

  while (true) {

    cin >> n;

    std::vector<double> nums(n);

    if (n == 0) {
      break;
    }

    for (int i = 0; i < n; i++) {

      cin >> num;
      nums[i] = num;
    }

    //        cout << "nums[0]" << nums[0] << endl;

    double sum = 0;

    for (int i = 0; i < n; i++) {
      sum += nums[i];
    }

    //        cout << sum << endl;

    double m = sum / n;

    //        cout << "m:" << m << endl;

    double mSum = 0;
    for (int i = 0; i < n; i++) {
      mSum += pow(nums[i] - m, 2);

      //            cout << i << ":" << mSum << endl;
    }

    //        cout << "mSum:" << mSum << endl;

    double result = sqrt(mSum / n);

    printf("%.8lf \\n", result);
  }

  return 0;
}


#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
  int i, n, s[100];
  int sum = 0;
  double a;
  while (n != 0) {
    cin >> n;
    for (i = 0; i < n; i++) {
      cin >> s[i];
      sum += s[i];
    }
    double average = sum / n;
    sum = 0;
    for (i = 1; i < n; i++) {
      sum += pow(s[i] - average, 2.0);
    }
    a = sqrt(sum / n);
    cout << fixed << setprecision(4) << a << endl;
  }
  return 0;
}

#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
  int i, n;
  double sum = 0;
  double a, average;
  while (1) {
    sum = 0;
    int s[1001] = {};
    average = 0;
    cin >> n;
    if (n == 0) {
      break;
    }
    for (i = 0; i < n; i++) {
      cin >> s[i];
      sum += s[i];
    }
    average = sum / (double)n;
    sum = 0;
    for (i = 0; i < n; i++) {
      sum += pow(((double)s[i] - average), 2.0);
    }
    a = sqrt(sum / (double)n);
    cout << fixed << setprecision(4) << a << endl;
  }
  return 0;
}


#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
double f(double x) { return x * x; }

int main(void) {
  double s[101], n, m, sum, a;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      sum += s[i];
    }
    m = sum / n;
    sum = 0;
    for (int i = 0; i < n; i++) {
      sum += f(s[i] - m);
    }
    a = sum / n;
    cout << fixed << setprecision(8) << sqrt(a) << endl;
  }

  return 0;
}

#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
double f(double x) { return x * x; }

int main(void) {
  double s[1001], n, m, sum, ans;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      sum += s[i];
    }
    m = sum / n;
    ans = 0;
    for (int i = 0; i < n; i++) {
      ans += f(s[i] - m);
    }
    cout << fixed << setprecision(8) << sqrt(ans / n) << endl;
  }

  return 0;
}


#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>

using namespace std;

int main() {
  int n;

  while (true) {
    cin >> n;
    if (n == 0)
      break;

    vector<double> s;
    double m = 0.0;
    for (int i = 0; i < n; i++) {
      int temp;
      cin >> temp;
      m += temp;
      s.push_back(temp);
    }
    m = m / static_cast<double>(n);

    double a = 0.0;
    for (int i = 0; i < n; i++) {
      a += (s[i] - m) * (s[i] - m);
    }

    a = a / static_cast<double>(n);
    cout << fixed << setprecision(8) << sqrt(a) << "\\n";

    s.~vector();
  }

  return 0;
}

#include <cmath>
#include <iomanip>
#include <iostream>
#include <vector>

using namespace std;

int main() {
  int n;

  while (true) {
    cin >> n;
    if (n == 0)
      break;

    double *s = new double[n];
    double m = 0.0;
    for (int i = 0; i < n; i++) {
      int temp;
      cin >> temp;
      m += temp;
      s[i] = temp;
    }
    m = m / static_cast<double>(n);

    double a = 0.0;
    for (int i = 0; i < n; i++) {
      a += (s[i] - m) * (s[i] - m);
    }

    a = a / static_cast<double>(n);
    cout << fixed << setprecision(8) << sqrt(a) << "\\n";

    delete[] s;
  }

  return 0;
}

free(): double free detected in tcache 2


#include <cmath>
#include <iostream>
#include <stdio.h>

using namespace std;
int main() {
  int n, s[99];
  double ave, hensa[99], sum = 0;
  cin >> n;
  while (n != 0) {
    for (int i = 0; n > i; i++) {
      cin >> s[i];
      sum += s[i];
    }
    ave = sum / n;
    sum = 0;
    for (int i = 0; n > i; i++) {
      sum += (s[i] - ave) * (s[i] - ave);
    }
    printf("%.6f\\n", sqrt(sum / n));
  }
}

#include <cmath>
#include <iostream>
#include <stdio.h>

using namespace std;
int main() {
  int n;
  while (cin >> n, n != 0) {
    double ave, hensa[99], sum = 0, s[999];
    for (int i = 0; n > i; i++) {
      cin >> s[i];
      sum += s[i];
    }
    ave = sum / n;
    sum = 0;
    for (int i = 0; n > i; i++) {
      sum += (s[i] - ave) * (s[i] - ave);
    }
    printf("%.6f\\n", sqrt(sum / n));
  }
}


#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int n, s[100];

  while (cin >> n, n) {
    for (int i = 0; i < n; i++) {
      cin >> s[i];
    }
    int sum = 0;
    for (int i = 0; i < n; i++) {
      sum += s[i];
    }
    double m = 1.0 * sum / n;

    double t = 0;
    for (int i = 0; i < n; i++) {
      t += (s[i] - m) * (s[i] - m);
    }

    double a = sqrt(t / n);
    printf("%.6f\\n", a);
  }

  return 0;
}

#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int n, s[1000];

  while (cin >> n, n) {
    for (int i = 0; i < n; i++) {
      cin >> s[i];
    }
    int sum = 0;
    for (int i = 0; i < n; i++) {
      sum += s[i];
    }
    double m = 1.0 * sum / n;

    double t = 0;
    for (int i = 0; i < n; i++) {
      t += (s[i] - m) * (s[i] - m);
    }

    double a = sqrt(t / n);
    printf("%.6f\\n", a);
  }

  return 0;
}


#include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
#define REP(i, j, n) for (int i = j; i < n; i++)
#define SORT(x) sort(x.begin(), x.end())

using namespace std;

int main() {
  float n, sum = 0, avr, bunsan1 = 0, bunsan2;
  vector<int> v(n);

  for (;;) {
    cin >> n;
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> v[i];
      sum += v[i];
    }
    avr = sum / n;

    for (int i = 0; i < n; i++) {
      bunsan1 += (avr - v[i]) * (avr - v[i]);
    }
    bunsan2 = bunsan1 / n;

    cout << sqrt(bunsan2) << endl;
    sum = 0;
    bunsan1 = 0;
  }
  return 0;
}

#include <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <numeric>
#include <string.h>
#include <string>
#include <utility>
#include <vector>
#define REP(i, j, n) for (int i = j; i < n; i++)
#define SORT(x) sort(x.begin(), x.end())

using namespace std;

int main() {
  float n, sum = 0, avr, bunsan1 = 0, bunsan2;

  for (;;) {
    cin >> n;
    vector<int> v(n);
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> v[i];
      sum += v[i];
    }
    avr = sum / n;

    for (int i = 0; i < n; i++) {
      bunsan1 += (avr - v[i]) * (avr - v[i]);
    }
    bunsan2 = bunsan1 / n;

    printf("%f\\n", sqrt(bunsan2));
    sum = 0;
    bunsan1 = 0;
  }
  return 0;
}


#include <bits/stdc++.h>
using namespace std;
int main() {
  cout << fixed << setprecision(12);
  int n;
  int s[100];
  double sum, ans;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    sum = 0;
    ans = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      sum += s[i];
    }
    sum /= n;
    for (int i = 0; i < n; i++) {
      ans += pow(sum - s[i], 2);
    }
    ans = sqrt(ans / n);
    cout << ans << endl;
  }
  return 0;
}

#include <bits/stdc++.h>
using namespace std;
int main() {
  cout << fixed << setprecision(12);
  int n;
  int s[1000];
  double sum, ans;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    sum = 0;
    ans = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      sum += s[i];
    }
    sum /= n;
    for (int i = 0; i < n; i++) {
      ans += pow(sum - s[i], 2);
    }
    ans = sqrt(ans / n);
    cout << ans << endl;
  }
  return 0;
}


#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int n;
  double s[100], a, m;

  while (1) {
    cin >> n;

    if (n == 0)
      break;

    double all = 0, z = 0;

    for (int i = 0; i < n; i++) {
      cin >> s[i];
      all += s[i];
    }

    m = all / n;

    for (int i = 0; i < n; i++) {
      z += pow(s[i] - m, 2);
    }

    a = sqrt(z / n);

    printf("%f\\n", a);
    // printf("test all=%.10f m=%.10f z=%.10f\\n",all,m,z); //test
  }

  return 0;
}

#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int n;
  double s[1000], a, m;

  while (1) {
    cin >> n;

    if (n == 0)
      break;

    double all = 0, z = 0;

    for (int i = 0; i < n; i++) {
      cin >> s[i];
      all += s[i];
    }

    m = all / n;

    for (int i = 0; i < n; i++) {
      z += pow(s[i] - m, 2);
    }

    a = sqrt(z / n);

    printf("%f\\n", a);
    // printf("test all=%.10f m=%.10f z=%.10f\\n",all,m,z); //test
  }

  return 0;
}


#include <cmath>
#include <cstdio>
#include <iostream>

using namespace std;

int main() {
  while (1) {
    int n;
    cin >> n;
    if (n == 0) {
      break;
    }

    int s[101];
    double total = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      total += s[i];
    }

    double m = total / n;

    double a_2 = 0;
    for (int i = 0; i < n; i++) {
      a_2 += (s[i] - m) * (s[i] - m) / n;
    }

    double a = sqrt(a_2);
    printf("%.4f\\n", a);
  }

  return 0;
}

#include <cmath>
#include <cstdio>
#include <iostream>

using namespace std;

int main() {
  while (1) {
    int n;
    cin >> n;
    if (n == 0) {
      break;
    }

    int s[1000];
    double total = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      total += s[i];
    }

    double m = total / n;

    double a_2 = 0;
    for (int i = 0; i < n; i++) {
      a_2 += (s[i] - m) * (s[i] - m) / n;
    }

    double a = sqrt(a_2);
    printf("%.4f\\n", a);
  }

  return 0;
}


#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  while (1) {
    long long n, sum = 0, s[101];
    double sum2 = 0;

    cin >> n;
    if (n == 0)
      break;

    for (int i = 1; i <= n; i++) {
      cin >> s[i];
      sum += s[i];
    }
    double m = (double)sum / n;

    for (int i = 1; i <= n; i++) {
      sum2 += (s[i] - m) * (s[i] - m);
    }
    double a2 = (double)sum2 / n;

    printf("%lf\\n", sqrt(a2));
  }

  return 0;
}

#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  while (1) {
    long long n, sum = 0, s[1001];
    double sum2 = 0;

    cin >> n;
    if (n == 0)
      break;

    for (int i = 1; i <= n; i++) {
      cin >> s[i];
      sum += s[i];
    }
    double m = (double)sum / n;

    for (int i = 1; i <= n; i++) {
      sum2 += (s[i] - m) * (s[i] - m);
    }
    double a2 = (double)sum2 / n;

    printf("%lf\\n", sqrt(a2));
  }

  return 0;
}


#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>

using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  while (1) {
    if (n == 0)
      break;
    int b = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      b += a[i];
    }
    double m = b / n;
    int c = 0;
    for (int j = 0; j < n; j++) {
      c += pow(m - a[j], 2);
    }
    double x = c / n;
    printf("%.8f\\n", sqrt(x));
  }
}

#include <cmath>
#include <cstdio>
#include <iostream>
#include <string>

using namespace std;
int main() {
  int n;
  while (1) {
    cin >> n;
    double a[n];
    if (n == 0)
      break;
    double b = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      b += a[i];
    }
    double m = b / n;
    double c = 0;
    for (int j = 0; j < n; j++) {
      c += pow(m - a[j], 2) / n;
    }
    printf("%.8f\\n", sqrt(c));
  }
}


#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;

int main() {
  int q = 0;
  while (1) {
    double n;
    double date[100];
    double sum = 0;
    double var = 0;
    string haki;
    cin >> n;
    getline(cin, haki);
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> date[i];
      sum += date[i];
    }
    double ave = sum / n;
    for (int i = 0; i < n; i++) {
      var += pow(date[i] - ave, 2);
    }
    cout << fixed << pow(var / n, 0.5) << endl;
    q++;
    if (q > 10)
      break;
  }
  return 0;
}

#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;

int main() {
  int q = 0;
  while (1) {
    double n;
    double date[1000];
    double sum = 0;
    double var = 0;
    string haki;
    cin >> n;
    getline(cin, haki);
    if (n == 0)
      break;
    for (int i = 0; i < n; i++) {
      cin >> date[i];
      sum += date[i];
    }
    double ave = sum / n;
    for (int i = 0; i < n; i++) {
      var += pow(date[i] - ave, 2);
    }
    cout << fixed << pow(var / n, 0.5) << endl;
    q++;
    if (q > 10)
      break;
  }
  return 0;
}


#include <math.h>
#include <stdio.h>

int main(void) {
  double n, s;
  double sum = 0;
  double sum2 = 0;

  while (true) {
    scanf("%d", &n);
    if (n == 0.0)
      break;

    for (int i = 0; i < n; i++) {
      scanf("%d ", &s);
      sum += s;
      sum2 += s * s;
    }

    printf("%f\\n", sqrt(sum2 / n - (sum / n) * (sum / n)));
  }
  return 0;
}

#include <math.h>
#include <stdio.h>

int main(void) {
  int n, s;
  double sum = 0.0;
  double sum2 = 0.0;

  while (true) {
    sum = sum2 = 0.0;
    scanf("%d", &n);
    if (n == 0)
      break;

    for (int i = 0; i < n; i++) {
      scanf("%d ", &s);
      sum += s;
      sum2 += s * s;
    }

    printf("%f\\n", sqrt(sum2 / n - (sum / n) * (sum / n)));
  }
  return 0;
}


#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
const int inf = 0x7fffffff;
typedef long long int ll;
using namespace std;
const int N = 100 + 5;
double A[N];
int main() {
  // #ifdef DEBUG
  //	freopen("in", "r", stdin);
  ////	freopen("out", "w", stdout);
  // #endif
  int n;
  while (scanf("%d", &n) != EOF && n) {
    double sum = 0;
    double ans = 0;
    for (int i = 0; i < n; i++) {
      scanf("%lf", &A[i]);
      sum += A[i];
    }
    sum /= n;
    //	cout<<sum<<endl;
    for (int i = 0; i < n; i++) {
      ans += (A[i] - sum) * (A[i] - sum);
    }
    ans = sqrt(ans / n);
    printf("%f\\n", ans);
  }
  // insert code above
  return 0;
}
// aoj1_10_c.cc

#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <vector>
const int inf = 0x7fffffff;
typedef long long int ll;
using namespace std;
const int N = 1000 + 5;
double A[N];
int main() {
  // #ifdef DEBUG
  //	freopen("in", "r", stdin);
  ////	freopen("out", "w", stdout);
  // #endif
  int n;
  while (scanf("%d", &n) != EOF && n) {
    double sum = 0;
    double ans = 0;
    for (int i = 0; i < n; i++) {
      scanf("%lf", &A[i]);
      sum += A[i];
    }
    sum /= n;
    //	cout<<sum<<endl;
    for (int i = 0; i < n; i++) {
      ans += (A[i] - sum) * (A[i] - sum);
    }
    ans = sqrt(ans / n);
    printf("%f\\n", ans);
  }
  // insert code above
  return 0;
}
// aoj1_10_c.cc


#include <cmath>
#include <iostream>
using namespace std;

int main() {
  int n, sum = 0;
  double m, sig;

  while (1) {
    cin >> n;
    if (n = 0)
      break;

    int s[n];
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      sum += s[i];
    }

    m = sum / n;
    sum = 0;

    for (int i = 0; i < n; i++) {
      sum += (s[i] - m) * (s[i] - m);
    }

    sig = sum / n;

    cout << fixed << sqrt(sig) << endl;
  }

  return 0;
}

#include <cmath>
#include <iostream>
using namespace std;

int main() {
  int n;
  double m, sig;

  while (1) {
    cin >> n;
    if (n == 0)
      break;

    double s[1000] = {0}, sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      sum += s[i];
    }

    m = sum / n;
    sum = 0;

    for (int i = 0; i < n; i++) {
      sum += (s[i] - m) * (s[i] - m);
    }

    sig = sqrt(sum / n);

    cout << fixed << sig << endl;
  }

  return 0;
}


#include <iostream>
using namespace std;
#include <cmath>

int main() {
  double m, n, a, s[100];
  for (int j = 0; j < 100; j++) {
    cin >> n;
    if (n == 0)
      break;
    m = 0;
    a = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      m += s[i];
    }
    m /= n;
    for (int i = 0; i < n; i++) {
      a += pow(s[i] - m, 2);
    }
    a /= n;
    cout << sqrt(a) << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;
#include <cmath>

int main() {
  double m, n, a, s[1000];
  for (int j = 0; j < 100; j++) {
    cin >> n;
    if (n == 0)
      break;
    m = 0;
    a = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      m += s[i];
    }
    m /= n;
    for (int i = 0; i < n; i++) {
      a += pow(s[i] - m, 2);
    }
    a /= n;
    cout << sqrt(a) << endl;
  }
  return 0;
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  double b, s[100], n;
  long x;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    x = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      x += s[i];
    }
    double m = x / n;
    b = 0;
    for (int i = 0; i < n; i++) {
      b += (s[i] - m) * (s[i] - m);
    }
    printf("%.8lf\\n", sqrt(b / n));
  }
  return 0;
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  double b, s[1000], n, x;
  while (1) {
    cin >> n;
    if (n == 0)
      break;
    x = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      x += s[i];
    }
    double m = x / n;
    b = 0;
    for (int i = 0; i < n; i++) {
      b += (s[i] - m) * (s[i] - m);
    }
    printf("%.8lf\\n", sqrt(b / n));
  }
  return 0;
}


#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;

int main(void) {
  int n;
  int *score;
  double ave, S;

  while (true) {
    cin >> n;

    score = new int[n];

    S = ave = 0.0;
    for (int i = 0; i < n; i++) {
      cin >> score[i];
      ave += score[i];
    }
    ave /= n;

    for (int i = 0; i < n; i++) {
      S += (score[i] - ave) * (score[i] - ave);
    }

    cout << fixed << setprecision(10) << sqrt(S / n) << "\\n";

    delete[] score;
  }

  return 0;
}

#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;

int main(void) {
  int n;
  int *score;
  double ave, S;

  while (true) {
    cin >> n;

    if (n == 0)
      break;

    score = new int[n];

    S = ave = 0.0;
    for (int i = 0; i < n; i++) {
      cin >> score[i];
      ave += score[i];
    }
    ave /= n;

    for (int i = 0; i < n; i++) {
      S += (score[i] - ave) * (score[i] - ave);
    }

    cout << fixed << setprecision(10) << sqrt(S / n) << "\\n";

    delete[] score;
  }

  return 0;
}


#include <cmath>
#include <iostream>
using namespace std;
int main() {
  int time;
  double m;
  int s[100];
  double apow;
  while (true) {
    cin >> time;
    if (time == 0)
      break;
    apow = 0;
    m = 0;
    for (int i = 0; i < time; ++i) {
      cin >> s[i];
      m += s[i];
    }
    m /= (double)time;
    for (int i = 0; i < time; ++i) {
      apow += pow((double)s[i] - m, 2.0);
    }
    cout << sqrt(apow / (double)time) << endl;
  }
  return 0;
}

#include <cmath>
#include <iostream>
using namespace std;
int main() {
  int time;
  double m;
  int s[1000];
  double apow;
  while (true) {
    cin >> time;
    if (time == 0)
      break;
    apow = 0;
    m = 0;
    for (int i = 0; i < time; ++i) {
      cin >> s[i];
      m += s[i];
    }
    m /= (double)time;
    for (int i = 0; i < time; ++i) {
      apow += pow((double)s[i] - m, 2.0);
    }
    cout << sqrt(apow / (double)time) << endl;
  }
  return 0;
}


#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <time.h>
#include <valarray>
#include <vector>

using namespace std;

int main(void) {
  long double s[500], Hei, kari;

  long int n;

  for (long int A = 0; A < 1000; A++) {
    cin >> n;

    if (n == 0) {
      break;
    }

    for (long int i = 0; i < n; i++) {
      cin >> s[i];
      Hei += s[i];
    }

    for (long int i = 0; i < n; i++) {
      kari += (s[i] - Hei / n) * (s[i] - Hei / n);
    }

    cout << fixed << setprecision(8) << sqrt(kari / n) << endl;

    Hei = 0;
    kari = 0;
  }
}

#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <time.h>
#include <valarray>
#include <vector>

using namespace std;

int main(void) {
  long double s[1000], Hei, kari;

  long int n;

  for (long int A = 0; A < 1000; A++) {
    cin >> n;

    if (n == 0) {
      break;
    }

    for (long int i = 0; i < n; i++) {
      cin >> s[i];
      Hei += s[i];
    }

    for (long int i = 0; i < n; i++) {
      kari += (s[i] - Hei / n) * (s[i] - Hei / n);
    }

    cout << fixed << setprecision(8) << sqrt(kari / n) << endl;

    Hei = 0;
    kari = 0;
  }
}


#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  int n, a[100];
  double average;
  while (1) {
    scanf("%d", &n);
    if (n == 0)
      break;
    int sum = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      sum = sum + a[i];
      average = 1.0 * sum / n;
    }

    double sum2 = 0.0;
    for (int i = 0; i < n; i++) {
      sum2 = sum2 + (average - a[i]) * (average - a[i]);
    }
    printf("%lf\\n", sqrt(sum2 / n));
  }
}

#include <math.h>
#include <stdio.h>
int main() {
  int n, a[1000];
  double average;
  while (1) {
    scanf("%d", &n);
    if (n == 0)
      break;
    int sum = 0;
    for (int i = 0; i < n; i++) {
      scanf("%d", &a[i]);
      sum = sum + a[i];
      average = 1.0 * sum / n;
    }

    double sum2 = 0.0;
    for (int i = 0; i < n; i++) {
      sum2 = sum2 + (average - a[i]) * (average - a[i]);
    }
    printf("%lf\\n", sqrt(sum2 / n));
  }
}


#include <bits/stdc++.h>
using namespace std;
int main() {
  while (1) {
    int n;
    double m = 0, result = 0;
    cin >> n;
    int s[n + 1];
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      m += s[i];
    }
    m /= n;
    for (int i = 0; i < n; i++) {
      result += pow((s[i] - m), 2);
    }
    result = sqrt(result / n);
    cout << fixed << setprecision(8);
    cout << result << endl;
  }
}

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int s[1001];
  while (cin >> n) {
    if (n == 0)
      break;
    double m = 0, result = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      m += s[i];
    }
    m /= n;
    for (int i = 0; i < n; i++) {
      result += pow((s[i] - m), 2);
    }
    cout << fixed << setprecision(8);
    cout << sqrt(result / n) << endl;
  }
}


#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
  int n;
  double a[101], s, e;
  do {
    cin >> n;
    if (n == 0)
      break;
    s = 0;
    e = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      s += (a[i] / n);
    }
    for (int i = 0; i < n; i++) {
      e += ((a[i] - s) * (a[i] - s)) / n;
    }
    cout << fixed;
    cout << setprecision(8) << sqrt(e) << endl;
  } while (true);
  return 0;
}

#include <iomanip>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
  int n;
  double a[1001], s, e;
  do {
    cin >> n;
    if (n == 0)
      break;
    s = 0;
    e = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      s += (a[i] / n);
    }
    for (int i = 0; i < n; i++) {
      e += ((a[i] - s) * (a[i] - s)) / n;
    }
    cout << fixed;
    cout << setprecision(8) << sqrt(e) << endl;
  } while (true);
  return 0;
}


#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  // int n,vol,s[100];
  double a, n, vol, s[100], avg;
  while (true) {

    cin >> n;
    if (n == 0)
      break;
    vol = 0;
    a = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      vol += s[i];
    }
    avg = vol / n;
    for (int i = 0; i < n; i++) {
      a += pow(s[i] - avg, 2.0);
    }
    a /= n;
    printf("%lf\\n", sqrt(a));
  }
  return 0;
}

#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  // int n,vol,s[100];
  double a, n, vol, s[1000], avg;
  while (true) {

    cin >> n;
    if (n == 0)
      break;
    vol = 0;
    a = 0;
    for (int i = 0; i < n; i++) {
      cin >> s[i];
      vol += s[i];
    }
    avg = vol / n;
    for (int i = 0; i < n; i++) {
      a += pow(s[i] - avg, 2.0);
    }
    a /= n;
    printf("%lf\\n", sqrt(a));
  }
  return 0;
}


#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int n;
  double s[101], sum, dist, m;

  while (1) {
    cin >> n;
    sum = 0.0;
    dist = 0.0;
    if (n == 0)
      break;

    for (int i = 0; i < n; i++) {
      cin >> s[i];

      sum += s[i];
    }
    m = sum / n;

    for (int i = 0; i < n; i++) {
      dist += pow(s[i] - m, 2);
    }

    printf("%lf\\n", sqrt(dist / n));
  }

  return 0;
}

#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;

int main() {
  int n;
  double s[1000], sum, dist, m;

  while (1) {
    cin >> n;
    sum = 0.0;
    dist = 0.0;
    if (n == 0)
      break;

    for (int i = 0; i < n; i++) {
      cin >> s[i];

      sum += s[i];
    }
    m = sum / n;

    for (int i = 0; i < n; i++) {
      dist += pow(s[i] - m, 2);
    }

    printf("%lf\\n", sqrt(dist / n));
  }

  return 0;
}


#include <stdio.h>
using namespace std;
int main() {
  int w = 0;
  scanf("%d", &w);
  printf("%d\\n", w * w * w);
  return 8;
}

#include <stdio.h>
using namespace std;
int main() {
  int w = 0;
  scanf("%d", &w);
  printf("%d\\n", w * w * w);
  return 0;
}


#include <stdio.h>

using namespace std;

int main() {
  int w = 0;
  scanf("%d", &w);
  printf("%d\\n", w * w * w);

  return 8;
}

#include <stdio.h>
int main() {
  int a;
  scanf("%d", &a);
  printf("%d\\n", a * a * a);
  return 0;
}


#include <stdio.h>
int main() {
  int x = 0;
  scanf("%d", x);
  printf("%d\\n", &x);
  return 0;
}

#include <stdio.h>
int main() {
  int x = 0;
  scanf("%d", &x);
  printf("%d\\n", x * x * x);
  return 0;
}


#include <stdio.h>

int main() {
  int x = 0;
  scanf("%d", x);
  printf("%d\\n", x * x * x);
  return 0;
}

#include <stdio.h>

int main() {
  int x = 0;
  scanf("%d", &x);
  printf("%d\\n", x * x * x);
  return 0;
}


#include <stdio.h>
int main() {
  int x, ans = 0;
  scanf("%d", x);
  ans = x * x * x;
  printf("%d\\n", ans);
  return 0;
}

#include <stdio.h>
int main() {
  int x, ans = 0;
  scanf("%d", &x);
  ans = x * x * x;
  printf("%d\\n", ans);
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x;
  do {
    cin >> x;
  } while (x >= 1 && x <= 100);
  cout << (x * x * x) << endl;
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x;
  cin >> x;
  cout << x * x * x << endl;
}


#include <stdio.h>

int main() {
  int x, ans;
  scanf("%d", x);

  ans = x * x * x;

  printf("%d\\n", ans);

  return 0;
}

#include <stdio.h>

int main() {
  int x, ans;
  scanf("%d", &x);

  ans = x * x * x;

  printf("%d\\n", ans);

  return 0;
}


#include <iostream>
using namespace std;

int main(void) {

  int x = 5;
  int sum = 1;
  do {
    cin >> x;
  } while (1 <= x && x <= 1000);

  for (int i = 0; i <= 2; i++) {
    sum *= x;
  }
  cout << sum << endl;

  return 0;
}

#include <iostream>
using namespace std;

int main(void) {

  int x = 5;
  int sum = 1;
  cin >> x;

  for (int i = 0; i <= 2; i++) {
    sum *= x;
  }
  cout << sum << endl;

  return 0;
}


#include <stdio.h>
int main(void) {
  int x;
  int y;
  y = x * x * x;
  scanf("%d\\n", x);
  printf("%d\\n", y);
  return 0;
}

#include <stdio.h>

int main(void) {
  int x, y;
  scanf("%d", &x);
  y = x * x * x;
  printf("%d\\n", y);
  return 0;
}


#include <iostream>

#define OK 1;
using namespace std;

int main(void) {
  int x;

  // scanf
  cin >> x;

  // printf
  cout << x * x * x << endl;

  return OK;
}

#include <iostream>

#define OK 0;
using namespace std;

int main(void) {
  int x;

  // scanf
  cin >> x;

  // printf
  cout << x * x * x << endl;

  return OK;
}


#include <iostream>
using namespace std;

int main(int arg, char *argv[]) {
  int n = stoi(argv[1]);
  int ans = n * n * n;
  cout << ans << endl;
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x;
  cin >> x;
  cout << x * x * x << endl;
  return 0;
}
/*
int main(int arg, char *argv[])
{
    int n = stoi(argv[1]);
    int ans = n * n * n;
    cout << ans << endl;
    return 0;
}
*/

terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string: construction from null is not valid


#include <stdio.h>
int main() {
  int x;

  scanf("%d", x);
  printf("%d", x * x * x);

  return 0;
}

#include <stdio.h>
int main() {
  int x;

  scanf("%d", &x);

  x = x * x * x;

  printf("%d\\n", x);

  return 0;
}


#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
  int x = atoi(argv[1]);
  int y = x * x * x;
  printf("%d\\n", y);
  return 0;
}

#include <iostream>

int main() {
  int x, y;
  std::cin >> x;
  y = x * x * x;
  std::cout << y << std::endl;
  return 0;
}


#include <stdio.h>

int main(void) {
  int x = 0;
  scanf("%d\\n", x);
  printf("x", x * x * x);
  return 0;
}

#include <stdio.h>

int main(void) {
  int a;
  scanf("%d\\n", &a);
  printf("%d\\n", a * a * a);
  return 0;
}


#include <stdio.h>

int main(void) {
  int x;

  scanf("%d", x);
  printf("%d", x * x * x);

  return 0;
}

#include <stdio.h>

int main(void) {
  int x;

  scanf("%d", &x);
  printf("%d\\n", x * x * x);

  return 0;
}


#include <stdio.h>
int main() {

  int x = 0;

  scanf("%d", x);
  if (x >= 1 && x <= 100) {
    printf("%d\\n", x * x * x);
  }

  return 0;
}

#include <stdio.h>
int main() {

  int x = 0;
  scanf("%d", &x);
  if (x >= 1 && x <= 100) {
    printf("%d\\n", x * x * x);
  } else {
  }

  return 0;
}


#include <stdio.h>
int main() {

  int x = 0;

  scanf("%d", x);
  if (x > 0 && x < 100) {
    printf("%d\\n", x * x * x);
  }

  return 0;
}

#include <stdio.h>

int main() {

  int x = 0;
  scanf("%d", &x);
  if (x >= 1 && x <= 100) {
    printf("%d\\n", x * x * x);
  } else {
    printf("範囲外\\n");
  }

  return 0;
}


#include <stdio.h>

int main(void) {
  int x;
  scanf("%d", x);
  printf("%d", x * x * x);

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x;
  cin >> x;
  cout << x * x * x << endl;

  return 0;
}


#include <iostream>

using namespace std;

int Cubic(int x) { return (x * x * x); }

int main() {
  int x;

  cin >> x;

  x = Cubic(x);

  cout << x << endl;

  while (1)
    ;

  return 0;
}

#include <iostream>

using namespace std;

int Cubic(int x) { return (x * x * x); }

int main() {
  int x;

  cin >> x;

  x = Cubic(x);

  cout << x << endl;

  // while(1);

  return 0;
}


#include <iostream>
using namespace std;

int main(int x) { return x * x * x; }


#include <iostream>
using namespace std;
int main() {
  int n, x, cnt;
  int iniI, iniJ, inik;
  while (cin >> n >> x, n != 0 || x != 0) {
    cnt = 0;
    iniI = 1;
    for (int i = iniI; i <= n; i++) {
      iniI = i + 1;
      iniJ = i + 1;
      for (int j = iniJ; j <= n; j++) {
        iniJ = j + 1;
        inik = j + 1;
        for (int k = inik; k <= n; k++) {
          inik = k + 1;
          if ((i + j + k) == x) {
            cnt++;
            // cout<<"○"<<i<<"+"<<j<<"+"<<k<<"=="<<x<<endl;
          }
          /*else{
              cout<<"×"<<i<<"+"<<j<<"+"<<k<<"!="<<x<<endl;
          }*/
        }
      }
    }
    cout << cnt << endl;
  }

  return 0;
}

#include <iostream>
using namespace std;
int main() {

  int x; // 変数を宣言

  cin >> x;

  cout << x * x * x << endl;
  return 0;
}


#include <stdio.h>

int main(void) {
  int x;
  scanf("%d\\n", x);

  printf("%d\\n", x * x * x);

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x;
  cin >> x;
  cout << x * x * x << endl;
  return 0;
}


#include <cmath>
#include <iostream>
#include <string>

using namespace std;

int main(int argc, char *argv[]) {
  //   if(argc != 2)
  //        return 0;
  int arg = stoi(argv[1]);

  int result = arg * arg * arg;
  // print(result);
  cout << result << endl;
  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int x;
  std::cin >> x;

  int result = x * x * x;
  cout << result << endl;

  return 0;
}


#include <stdio.h>
int main(void) {
  int x = 0;
  scanf("%d", x);
  printf("%d", x * x * x);
  return 0;
}

#include <stdio.h>
int main(void) {
  int x = 0;
  scanf("%d", &x);
  printf("%d\\n", x * x * x);
  return 0;
}


#include <stdio.h>

int main() {
  int x = 0;

  scanf("%d", &x);
  x = x * x * x;
  printf("%n\\n", x);

  return 0;
}

#include <stdio.h>

int main() {
  int x;

  scanf("%d", &x);
  x = x * x * x;
  printf("%d\\n", x);

  return 0;
}


#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
  if (argc != 2) {
    return fprintf(stderr, "usage: exe param\\n");
    return -1;
  }
  int n = atoi(argv[1]);
  int ans = n * n * n;
  printf("%d\\n", ans);
  return 0;
}

#include <stdio.h>

int main() {
  int n = 0;
  scanf("%d", &n);
  int ans = n * n * n;
  printf("%d\\n", ans);
  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int x, sum;
  do {
    cin >> x;
  } while (x < 1 || x > 10);
  sum = x * x * x;
  cout << sum << endl;

  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int x, sum;

  cin >> x;

  sum = x * x * x;
  cout << sum << endl;

  return 0;
}


#include <stdio.h>

int main(void) {
  int x;
  scanf("%d", x);
  printf("%d \\n", x * x * x);

  return 0;
}

#include <stdio.h>

int main(void) {
  int x, xxx;
  scanf("%d", &x);
  xxx = x * x * x;
  printf("%d\\n", xxx);

  return 0;
}


#include <stdio.h>

int main(void) {
  int x;
  scanf("%d", x);
  printf("%d", x * 2);
  return 0;
}

#include <stdio.h>

int main(void) {
  int x;
  scanf("%d", &x);
  x = x * x * x;
  printf("%d\\n", x);
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x;
  cin >> x;
  return x * x * x;
}


#include <stdio.h>
int main(void) {
  int x, y;
  scanf("%d", x);
  y = x * x * x;
  printf("%d\\n", y);
  return 0;
}

#include <stdio.h>
int main(void) {
  int x, y;
  scanf("%d", &x);
  y = x * x * x;
  printf("%d\\n", y);
  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int i, x, y;
  cin >> x;
  for (i = 1; i <= 3; i *= x)
    y = i;
  cout << y << endl;
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int x, y;
  cin >> x;
  y = x * x * x;
  cout << y << endl;
  return 0;
}


#include <stdio.h>
int main() {
  int a;
  scanf("%d", a);
  printf("%d", a * a * a);
}

#include <stdio.h>
int main() {
  int a, b;
  scanf("%d", &a);
  b = a * a * a;
  printf("%d\\n", b);
}


#include <cmath>
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[]) {
  int n = 0, n2 = 0;
  // cin >> n;
  n = atoi(argv[1]);
  if (n < 1 || n > 100) {
    return 1;
  }
  n2 = pow(n, 3.0);
  cout << n2 << endl;
}

#include <cmath>
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[]) {
  int n = 0, n2 = 0;
  cin >> n;
  // n = atoi(argv[1]);
  if (n < 1 || n > 100) {
    return 1;
  }
  n2 = pow(n, 3.0);
  cout << n2 << endl;
}


#include <cstdio>
int main() {
  int a, b;
  scanf("%d", a);
  b = a * a * a;
  printf("%d\\n", b);
  return 0;
}

#include <cstdio>
int main() {
  int a, b;
  scanf("%d", &a);
  b = a * a * a;
  printf("%d\\n", b);
  return 0;
}


#include <stdio.h>
int main(void) {
  // Your code here!
  int x;
  scanf("%d", &x);
  printf("%d\\n", x * x * x);

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x;

  cin >> x;

  cout << x * x * x << endl;

  return 2;
}

#include <stdio.h>

int main() {

  int x;
  scanf("%d", &x);
  printf("%d\\n", x * x * x);
}


#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>

double charToDouble(char *c) { return atof(c); }

std::string doubleToString(double x) {
  char c[256] = {'\\0'};
  sprintf(c, "%.0f", x);

  return c;
}

int main(int argc, char *argv[]) {
  double y = pow(charToDouble(argv[1]), 3);
  std::cout << doubleToString(y) << std::endl;
}

#include <iostream>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>

double charToDouble(char *c) { return atof(c); }

std::string doubleToString(double x) {
  char c[256] = {'\\0'};
  sprintf(c, "%.0f", x);

  return c;
}

int main() {
  int x;
  std::cin >> x;
  double y = pow(double(x), 3);
  std::cout << doubleToString(y) << std::endl;
}


#include <iostream>
using namespace std;

int main() {
  int i;
  for (;;) {
    cin >> i;
    cout << i * i * i << endl;
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int i;
  cin >> i;
  cout << i * i * i << endl;
  return 0;
}


#include <iostream>
#include <string>
int main(int argc, char const *argv[]) {
  std::string str;
  int i, answer;
  str += argv[1];
  i = std::stoi(str);
  answer = i * i * i;
  std::cout << answer << std::endl;
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x;
  cin >> x;
  cout << x * x * x << endl;
}


#include <stdio.h>
int main() {
  int a;
  scanf("%d", a);
  printf("%d\\n", a * a * a);
  return 0;
}

#include <stdio.h>
int main() {
  int a;
  scanf("%d", &a);
  printf("%d\\n", a * a * a);
  return 0;
}


#include <stdio.h>

int main() {

  int x;

  scanf("%d", x);

  x = x * x * x;

  printf("%d\\n", x);
}

#include <stdio.h>

int main() {

  int x;

  scanf("%d", &x);

  x = x * x * x;

  printf("%d\\n", x);
}


#include <math.h>
#include <stdio.h>

int main(void) {
  for (int i = 0; 1 <= i <= 100; i++) {
    // 3乗
    printf("%dの3乗は%1f\\n", i + 1, pow(i + 1, 3.0));
  }

  return 0;
}


#include <cmath>
#include <iostream>
using namespace std;

int main(int argc, const char *argv[]) {
  int x = 0;
  while (0 > x || x < 100) {
    cin >> x;
  }
  cout << pow(x, 3.0);
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int x;

  cin >> x;

  cout << x * x * x << endl;

  return 0;
}


#include <stdio.h>

int main() {
  int x;
  int outdata;
  scanf("%d", x);
  if (x >= 1 && x <= 100) {
    outdata = x * x * x;
    printf("%d\\n", outdata);
  }

  return 0;
}

#include <iostream>
using namespace std;
int main(void) {
  int input = 0;

  cin >> input;
  cout << input * input * input << "\\n";
  return 0;
}


#include <stdio.h>

int main(void) {
  int x;
  scanf("%d", &x);
  return x * x * x;
}

#include <stdio.h>

int main(void) {
  int x;
  scanf("%d", &x);
  printf("%d\\n", x * x * x);
}


#include <stdio.h>
int main(int argc, char *argv[]) {
  int x = scanf("%d", argv[1]);
  printf("%d\\n", x * x * x);
  return 0;
}

#include <stdio.h>
int main(int argc, char *argv[]) {
  int x;
  scanf("%d", &x);
  printf("%d\\n", x * x * x);
  return 0;
}


#include <stdio.h>
int main() {
  int x;
  scanf("%d", x);
  printf("%d\\n", x * x * x);
}

#include <stdio.h>
int main() {
  int x;
  scanf("%d", &x);
  printf("%d\\n", x * x * x);
}


#include <stdio.h>

int main(void) {
  int a;
  scanf("%d", &a);
  int b = a * a * a;
  return (b);
}

#include <stdio.h>

int main(void) {
  int a;
  scanf("%d", &a);
  int b = a * a * a;
  printf("%d\\n", b);
  return (0);
}


#include <iostream>

int main() {
  int x;
  std::cin >> x;
  std::cout << x * x * x << std::endl;
  return x;
}

#include <iostream>

int main() {
  int x;
  std::cin >> x;
  std::cout << x * x * x << std::endl;
}


#include <stdio.h>
int main() {
  int a, b, c, d;
  scanf("%d %d", a, b);
  c = a * b;
  d = a * 2;
  d += b * 2;
  printf("%d %d", c, d);
  return (0);
}

#include <stdio.h>
int main() {
  int a, b, c, d;
  scanf("%d %d", &a, &b);
  c = a * b;
  d = a * 2;
  d += b * 2;
  printf("%d %d\\n", c, d);
  return (0);
}


#include <cstdio>
#include <cstdlib>
int main(int argc, char *argv[]) {
  int x = atoi(argv[1]);
  int y = atoi(argv[2]);
  printf("%d %d\\n", x * y, 2 * (x + y));
  return 0;
}

#include <stdio.h>

int main(void) {
  int x, y;
  scanf("%d %d", &x, &y);
  printf("%d %d\\n", x * y, 2 * (x + y));
  return 0;
}


#include <stdio.h>
int main() {
  int a, b, x, y;
  scanf("%d %d", a, b);
  x = a * b;
  y = 2 * (a + b);
  printf("%d %d", x, y);
  return 0;
}

#include <stdio.h>
int main() {
  int a, b, x, y;
  scanf("%d %d", &a, &b);
  x = a * b;
  y = 2 * (a + b);
  printf("%d %d\\n", x, y);
  return 0;
}


#include <stdio.h>
int main(void) {
  // Your code here!
  int a, b;
  scanf("%d %d", &a, &b);
  printf("%d %d\\n", a * b, 2 * (a + b));
}


#include <stdio.h>

int main() {

  int x, y, a, b;

  scanf("%d", x);
  scanf("%d", y);

  a = x * y;
  b = (x * 2) + (y * 2);

  printf("%d %d\\n", a, b);
}

#include <stdio.h>

int main() {

  int x, y, a, b;

  scanf("%d", &x);
  scanf("%d", &y);

  a = x * y;
  b = (x * 2) + (y * 2);

  printf("%d %d\\n", a, b);
}


#include <stdio.h>
int main(void) {

  int a, b, c, d;

  scanf("%d", a);

  scanf("%d", b);

  c = a * b;

  d = a * a + b * b;

  printf("%d %d\\n", c, d);

  return 0;
}

#include <stdio.h>
int main(void) {

  int a, b, c, d;

  scanf("%d", &a);

  scanf("%d", &b);

  c = a * b;

  d = (a * 2) + (b * 2);

  printf("%d %d\\n", c, d);

  return 0;
}


#include <iostream>
using namespace std;

int main() {

  int a, b;

  while (1) {
    cin >> a;
    cin >> b;
    if (a < 1 || b > 100) {
      continue;
    } else {
      cout << a * b << " " << a * 2 + b * 2 << endl;
    }
  }

  return 0;
}

#include <iostream>
using namespace std;

int main() {

  int a, b;

  while (1) {
    cin >> a >> b;
    if (a < 1 || b > 100) {
      continue;
    } else {
      cout << a * b << " " << a * 2 + b * 2 << endl;
      break;
    }
  }

  return 0;
}


#include <stdio.h>
int main() {
  int a, b;
  scanf("%d %d", &a, b);
  printf("%d %d\\n", a * b, a + a + b + b);
}

#include <stdio.h>
int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  printf("%d %d\\n", a * b, a + a + b + b);
}


#include <stdio.h>
int main() {
  int a, b;
  scanf("%d %d", a, b);
  printf("%d\\n", a * b);
  printf("%d\\n", 2 * a + 2 * b);
  return 0;
}

#include <stdio.h>
int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  printf("%d %d\\n", a * b, 2 * a + 2 * b);
  return 0;
}


#include <stdio.h>

int main(void) {
  int a, b;
  scanf("%d", a);
  scanf("%d", b);
  printf("%d", a * b);

  return 0;
}

#include <stdio.h>

int main(void) {
  int a, b;
  scanf("%d", &a);
  scanf("%d", &b);
  printf("%d %d\\n", a * b, 2 * a + 2 * b);

  return 0;
}


#include <stdio.h>
int main(void) {
  int a, b, menseki, syuu;
  scanf("%d %d", a, b);
  menseki = a * b;
  syuu = a * 2 + b * 2;
  printf("%d %d\\n", menseki, syuu);
  return 0;
}

#include <stdio.h>
int main(void) {
  int a, b, menseki, syuu;
  scanf("%d %d", &a, &b);
  menseki = a * b;
  syuu = a * 2 + b * 2;
  printf("%d %d\\n", menseki, syuu);
  return 0;
}


#include <stdio.h>

int main() {
  int a, b, m, n;
  scanf("%d %d", a, b);

  m = a * b;
  n = 2 * a + 2 * b;

  printf("%d %d", m, n);

  return 0;
}

#include <stdio.h>

int main() {
  int a, b, m, n;
  scanf("%d %d", &a, &b);

  m = a * b;
  n = 2 * a + 2 * b;

  printf("%d %d\\n", m, n);

  return 0;
}


#include <stdio.h>

int main(void) {
  int x, y;
  scanf("%d %d", x, y);
  printf("%d %d\\n", x * y, 2 * (x + y));
  return 0;
}

#include <stdio.h>

int main(void) {
  int x, y;
  scanf("%d %d", &x, &y);
  int s = x * y;
  int l = 2 * (x + y);
  printf("%d %d\\n", s, l);
  return 0;
}


#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
  printf("%d", atoi(argv[1]));
  printf("1 4\\n");
  return 0;
}

#include <iostream>
#include <stdlib.h>

int main() {
  int x, y;
  std::cin >> x;
  std::cin >> y;

  int s = x * y;
  int l = 2 * x + 2 * y;
  std::cout << s << " " << l << std::endl;

  return 0;
}


#include <stdio.h>

int main(void) {
  int a, b;
  int x, y;

  scanf("%d %d", a, b);

  x = a * b;
  y = a * 2 + b * 2;

  printf("%d %d/n", a, b);

  return 0;
}

#include <stdio.h>

int main(void) {
  int a, b;
  int x, y;

  scanf("%d %d", &a, &b);

  x = a * b;
  y = a * 2 + b * 2;

  printf("%d %d\\n", x, y);

  return 0;
}


#include <cstdlib>
#include <iostream>
using namespace std;

int main(int argc, char *argv[]) {
  int i, j;
  i = atoi(argv[1]);
  j = atoi(argv[2]);
  int square, line;
  square = i * j;
  line = 2 * (i + j);
  cout << square << " " << line << endl;
  return 0;
}

#include <cstdlib>
#include <iostream>
using namespace std;

int main() {
  int i, j;
  cin >> i >> j;
  int square, line;
  square = i * j;
  line = 2 * (i + j);
  cout << square << " " << line << endl;
  return 0;
}


#include <stdio.h>

int main() {
  int a, b;
  scanf("%d %d", a, &b);
  printf("%d ", (a + b) * 2);
  printf("%d", a * b);
}

#include <stdio.h>

int main() {
  int a, b;
  scanf("%d %d", &a, &b);
  printf("%d ", a * b);
  printf("%d\\n", (a + b) * 2);
}


#include <stdio.h>
int main(void) {
  int x = 0;
  int y = 0;
  scanf("%d %d", x, y);
  printf("%d %d", x * y, 2 * (x + y));
  return 0;
}

#include <stdio.h>
int main(void) {
  int x = 0;
  int y = 0;
  scanf("%d %d", &x, &y);
  printf("%d %d\\n", x * y, 2 * x + 2 * y);
  return 0;
}


#include <stdio.h>

int main() {

  int angka1, angka2;
  scanf("%d %d", angka1, angka2);
  printf("%d %d\\n", angka1 * 3, (angka2 * 3) + 1);

  return 0;
}

#include <stdio.h>

int main() {

  int x1, x2, luas, luas1;
  scanf("%d %d", &x1, &x2);
  luas = x1 * x2;
  luas1 = (x1 + x2) * 2;
  printf("%d %d\\n", luas, luas1);

  return 0;
}


#include <stdio.h>
int main(void) {
  int a, b;
  int syu;
  int menseki;

  scanf("%d%d", a, b);
  menseki = a * b;
  printf("%d");
  syu = a * 2 + b * 2;
  printf("%d");
}

#include <stdio.h>
int main(void) {
  int a, b;
  int syu;
  int menseki;

  scanf("%d%d", &a, &b);
  menseki = a * b;
  printf("%d", menseki);
  syu = a * 2 + b * 2;
  printf(" %d\\n", syu);
}


#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
  int x = 0, y = 0;
  scanf("%d %d", x, y);
  printf("%d %d\\n", x * y, x * 2 + y * 2);
  return 0;
}

#include <cstdio>
#include <iostream>
using namespace std;
int main(void) {
  int x = 0, y = 0;
  scanf("%d %d", &x, &y);
  printf("%d %d\\n", x * y, x * 2 + y * 2);
  return 0;
}


#include <cstdio>

int main() {
  int a, b, c, d;
  scanf("%d %d", a, b);
  c = a * b;
  d = 2 * a + 2 * b;
  printf("%d %d", c, d);
  return 0;
}

#include <cstdio>

int main() {
  int a, b, c, d;
  scanf("%d %d", &a, &b);
  c = a * b;
  d = 2 * a + 2 * b;
  printf("%d %d\\n", c, d);

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  unsigned int a;
  unsigned int b;
  a = 0;
  b = 0;
  cin >> a >> b;
  if (a < 1) {
    return 1;
  } else {
    if (b < 100) {
      return 1;
    } else {
      cout << a * b << a + b + a + b << endl;
    }
  }
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a;
  int b;
  a = 0;
  b = 0;
  cin >> a >> b;
  if (a < 1) {
    return 0;
  } else {
    if (b > 100) {
      return 0;
    } else {
      cout << a * b << " " << a + b + a + b << endl;
    }
  }
  return 0;
}


#include <stdio.h>
using namespace std;
int main(void) {
  // Your code here!
  int a, b;
  scanf("%d %d", a, b);
  printf("%d %d\\n", 2 * (a + b), a * b);
}

#include <stdio.h>
using namespace std;
int main(void) {
  // Your code here!
  int a, b;
  scanf("%d %d", &a, &b);
  printf("%d %d\\n", a * b, 2 * (a + b));
}


#include <iostream>
using namespace std;
int main(void) {
  unsigned int s;
  s = 0;
  cin >> s;
  if (s = 86400) {
    return 1;
  } else if (s > 86400) {
    return 1;
  } else {
    unsigned int hour;
    unsigned int minute;
    unsigned int second;
    hour = s / 216000;
    minute = (s - (hour * 21600)) / 3600;
    second = s - (s - (s - (hour * 21600)) * 3600) / 60;
    cout << hour << ":" << minute << ":" << second << endl;
  }
  return 0;
}

#include <iostream>

using namespace std;

int main() {
  int s;

  cin >> s;
  int h = s / 3600;
  s %= 3600;
  int m = s / 60;
  s %= 60;
  cout << h << ":" << m << ":" << s << endl;

  return 0;
}


#include <cstdio>
#include <iostream>
using namespace std;
int main() {
  int S, M, L, base = 1000;
  scanf("%d %d %d", S & M & L);
  base += S;
  base += M + L;
  printf("%d\\n", base);

  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int S, h, m, s;
  cin >> S;
  h = S / 3600;
  m = S % 3600 / 60;
  s = S % 3600 % 60;
  cout << h << ":" << m << ":" << s << endl;
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int h, m, s;
  cin >> s;

  h = s / 3600;
  s %= s / 3600;
  m = s / 60;
  s %= s / 60;

  cout << h << ":" << m << ":" << s << endl;

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int h, m, s;
  cin >> s;

  h = s / 3600;
  s %= 3600;
  m = s / 60;
  s %= 60;

  cout << h << ":" << m << ":" << s << endl;

  return 0;
}


#include <cstdio>
#include <iostream>
using namespace std;
int main() {

  int x, s, m, h;
  cin >> x >> s >> m >> h;

  h = x / 3600;
  x = x % h;
  m = x / 60;
  x = x % s;
  s = x;

  cout << h << ":" << m << ":" << s;

  return 0;
}

#include <cstdio>
#include <iostream>
using namespace std;
int main() {

  int x, s, m, h;
  cin >> x;

  h = x / 3600;
  m = x % 3600 / 60;
  s = x % 3600 % 60;

  cout << h << ":" << m << ":" << s << endl;

  return 0;
}


#include <iostream>
#include <math.h>
#include <stdio.h>

using namespace std;

int h, m, s;
int main() {
  cin >> s;

  h = s / 3600;
  m = (s % 3600) / 60;
  s = s % 60;

  printf("%s:%s:%s", h, m, s);

  return 0;
}

#include <iostream>
#include <math.h>
#include <stdio.h>

using namespace std;

int h, m, s;
int main() {
  cin >> s;

  h = s / 3600;
  m = (s % 3600) / 60;
  s = s % 60;

  printf("%d:%d:%d\\n", h, m, s);

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int sec, h, m, s;
  cin >> sec;

  for (h = 0;; h++) {
    if (3600 <= sec) {
      sec -= 3600;
    }
  }
  for (m = 0;; m++) {
    if (60 <= sec) {
      sec -= 60;
    }
  }

  cout << h << ":" << m << ":" << sec;

  cout << endl;
}

#include <iostream>
using namespace std;
int main() {
  int sec, h, m, s;
  cin >> sec;

  for (h = 0;; h++) {
    if (3600 <= sec) {
      sec -= 3600;
    } else {
      break;
    }
  }
  for (m = 0;; m++) {
    if (60 <= sec) {
      sec -= 60;
    } else {
      break;
    }
  }

  cout << h << ":" << m << ":" << sec;

  cout << endl;
}


#include <iostream>
using namespace std;
int main() {
  int S1, h, m, s;
  cin >> S1;
  h = S1 / 60 / 60;
  m = h % h;
  s = m % m;
  cout << h << ':' << m << ':' << s << endl;
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int S1, h, m, s;
  cin >> S1;
  h = S1 / 3600;
  m = S1 % 3600 / 60;
  s = S1 % 60;
  cout << h << ':' << m << ':' << s << endl;
  return 0;
}


#include <cstdio>
int main() {
  int S, h, m;
  scanf("%d", S);
  h = S / 3600;
  m = (S - 3600 * h) / 60;
  printf("%d:%d:%d", h, m, S);
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int S, h, m, s;
  cin >> S;
  h = S / 3600;
  S = S % 3600;
  m = S / 60;
  s = S % 60;
  cout << h << ":" << m << ":" << s << '\\n';
  return 0;
}


#include <stdio.h>
#include <stdlib.h>

void watch(int second) {
  int hour;
  int min;
  int sec;

  char time[50];

  hour = (int)(second / 3600);
  min = (int)(second / 60 - hour * 60);
  sec = (int)(second % 60);

  sprintf(time, "%d:%d:%d", hour, min, sec);
  printf("%s\\n", time);

  return;
}

int main() {
  char *str;

  int second;

  scanf("%s", str);

  second = atoi(str);

  watch(second);

  return 0;
}

//
//  main.c
//  Hellow World
//
//  Created by 郷田将 on 2018/02/06.
//  Copyright © 2018年 郷田将. All rights reserved.
//

#include <stdio.h>
#include <stdlib.h>

void watch(int second) {
  int hour;
  int min;
  int sec;

  char time[50];

  hour = (int)(second / 3600);
  min = (int)(second / 60 - hour * 60);
  sec = (int)(second % 60);

  sprintf(time, "%d:%d:%d", hour, min, sec);
  printf("%s\\n", time);

  return;
}

int main() {

  int second;

  scanf("%d", &second);
  watch(second);

  return 0;
}


#include <stdio.h>

int main() {
  int S;
  scanf("%S", &S);
  int h, m, s;
  h = S / 3600;
  m = S / 60;
  s = S % 60;
  printf("%d:%d:%d\\n", h, m, s);
}

*** stack smashing detected ***: terminated


#include <stdio.h>

int main() {
  int x, h, m, s;
  scanf("%d", x);

  h = x / 3600;
  m = x % 3600 / 60;
  s = x % 60;

  printf("%d:%d:%d\\n", h, m, s);

  return 0;
}

#include <stdio.h>

int main() {
  int x, h, m, s;
  scanf("%d", &x);

  h = x / 3600;
  m = x % 3600 / 60;
  s = x % 60;

  printf("%d:%d:%d\\n", h, m, s);

  return 0;
}


#include <iostream>
using namespace std;
int main() {
  int h, m, s;
  cin >> s;
  h = s / 3600;
  s %= h;
  m = s / 60;
  s %= m;
  cout << h << ":" << m << ":" << s << endl;
  return 0;
}

#include <iostream>
using namespace std;
int main() {
  int h, m, s;
  cin >> s;
  h = s / 3600;
  s %= 3600;
  m = s / 60;
  s %= 60;
  cout << h << ":" << m << ":" << s << endl;
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int x;
  cin >> x;

  int a, b, c, d;
  a = x / 3600; // 何時間
  b = x % a;    // 残りの秒
  c = a / 60;   // 何分
  d = a % c;    // 残り秒
  cout << a << ":" << c << ":" << d << endl;
}

#include <iostream>
using namespace std;

int main() {
  int S;
  cin >> S;

  int h, a, m, b, s;

  h = S / 3600; // 何時間
  a = S % 3600; // 残り秒数
  m = a / 60;   // 何分
  b = a % 60;   // 残り秒数
  s = b;

  cout << h << ":" << m << ":" << s << endl;
}


#include <bits/stdc++.h>
using namespace std;

int main() {
  int h, m, s;
  cin >> s;
  h = s / 60 * 60;
  s %= s / 60 * 60;
  m = s / 60;
  s %= s / 60;
  cout << h << ":" << m << ":" << s << endl;
}

#include <bits/stdc++.h>
using namespace std;

int main() {
  int h, m, s;
  cin >> s;
  h = s / 3600;
  s %= 3600;
  m = s / 60;
  s %= 60;
  cout << h << ":" << m << ":" << s << endl;
}


#include <stdio.h>
int main(void) {
  int a, b, c;
  scanf("%d %d %d", a & a, &b, &c);
  if (a < b && b < c)
    printf("Yes\\n");
  else
    printf("No\\n");
  return 0;
}

#include <stdio.h>
int main(void) {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  if (a < b && b < c)
    printf("Yes\\n");
  else
    printf("No\\n");
  return 0;
}


#include <stdio.h>
int main() {
  int a, b, c;
  scanf("%d %d %d", a, b, c);
  if (a < b && b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }
  return 0;
}

#include <stdio.h>
int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  if (a < b && b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }
  return 0;
}


#include <iostream>

using namespace std;

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  if (a > b) {
    cout << "no";
    return 0;
  }
  if (b > c) {
    cout << "no";
    return 0;
  }
  cout << "yes";
  return true;
}

#include <iostream>

using namespace std;

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  if (a >= b) {
    cout << "No" << endl;
    return 0;
  } else if (b >= c) {
    cout << "No" << endl;
    return 0;
  } else {
    cout << "Yes" << endl;
    return 0;
  }
  return 0;
}


#include <cstdio>

int main() {
  // 入力
  int a, b, c;
  std::scanf("%d%d%d", a, b, c);

  if (a < b && b < c) {
    std::printf("Yes");
  } else {
    std::printf("No");
  }
  std::printf("\\n");

  return 0;
}

#include <cstdio>

int main() {
  // 入力
  int a, b, c;
  std::scanf("%d%d%d", &a, &b, &c);

  if (a < b && b < c) {
    std::printf("Yes");
  } else {
    std::printf("No");
  }
  std::printf("\\n");

  return 0;
}


#include <iostream>
#include <stdlib.h>
using namespace std;

int main(void) {

  int a, b, c;
  cin >> a >> b >> c;
  if (a < b) {
    if (b < c) {
      cout << "Yes" << endl;
      exit(1);
    }
  }
  cout << "No" << endl;
  return 0;
}

#include <iostream>
#include <stdlib.h>
using namespace std;

int main(void) {

  int a, b, c;
  cin >> a >> b >> c;
  if (a < b) {
    if (b < c) {
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}


#include <stdio.h>
int main() {
  int a, b, c;
  scanf("%d %d %d", a, b, c);
  if (a < b && b < c)
    printf("Yes\\n");
  else
    printf("No\\n");

  return 0;
}

#include <stdio.h>
int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  if (a < b && b < c)
    printf("Yes\\n");
  else
    printf("No\\n");

  return 0;
}


#include <stdio.h>
using namespace std;

int main() {
  int a, b, c;
  scanf("%d %d %d", a, b, c);
  if ((a < b) && (b < c)) {
    printf("Yes");
  } else {
    printf("No");
  }
  return 0;
}

#include <stdio.h>
using namespace std;

int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  if ((a < b) && (b < c)) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }
  return 0;
}


#include <stdio.h>
int main() {
  int a, b, c;
  scanf("%d %d %d\\n", a, b, c);
  if (a < b < c) {
    printf("yes\\n");
  } else {
    printf("no\\n");
  }
  return (0);
}

#include <stdio.h>
int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  if (a < b && b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }
  return (0);
}


#include <stdio.h>
int main(void) {
  int a, b, c;
  scanf("%d", a);
  scanf("%d", b);
  scanf("%d", c);
  if (a < b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }
  return 0;
}

#include <stdio.h>
int main(void) {
  int a, b, c;
  scanf("%d", &a);
  scanf("%d", &b);
  scanf("%d", &c);
  if (a < b && b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }
  return 0;
}


#include <stdio.h>
int main() {
  int a, b, c;
  scanf("%d %d %d", a, b, c);

  if (a < b < c)
    printf("Yes\\n");

  else
    printf("No\\n");

  return 0;
}


#include <stdio.h>
int main() {
  int a, b, c;
  scanf("%d", a);
  scanf("%d", b);
  scanf("%d", c);
  if (a < b && b < c)
    printf("Yes\\n");
  else
    printf("No\\n");
  return 0;
}

#include <stdio.h>
int main() {
  int a, b, c;
  scanf("%d", &a);
  scanf("%d", &b);
  scanf("%d", &c);
  if (a < b && b < c)
    printf("Yes\\n");
  else
    printf("No\\n");
  return 0;
}


#include <stdio.h>

int main(void) {
  int a, b, c;
  scanf("%d %d %d,&a,&b,&c");
  if (a < b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }

  return 0;
}

#include <stdio.h>

int main(void) {

  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  if (a < b && b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }
  return 0;
}


#include <cstdio>

int main() {
  int a, b, c;
  scanf("%d %d %d", a, b, c);
  if (a < b && b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }
}

#include <cstdio>

int main() {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  if (a < b && b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }
}


#include <stdio.h>
int main(void) {
  int a, b, c;
  scanf("%d %d %d", a, b, c);

  if (a < b && b < c)

  {
    printf("Yes\\n");
  }

  else {
    printf("No\\n");
  }

  return 0;
}

#include <stdio.h>
int main(void) {
  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);

  if (a < b && b < c)

  {
    printf("Yes\\n");
  }

  else {
    printf("No\\n");
  }

  return 0;
}


#include <stdio.h>

int main() {

  int a, b, c;
  scanf("%d %d %d", a, b, c);
  if (a < b && a < c && b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }

  return 0;
}

#include <stdio.h>

int main() {

  int a, b, c;
  scanf("%d %d %d", &a, &b, &c);
  if (a < b && a < c && b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }

  return 0;
}


#include <stdio.h>

int main() {

  int a, b, c;

  scanf("%d %d %d", a, b, c);

  if (a < b && b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }

  return 0;
}

#include <stdio.h>

int main() {

  int a, b, c;

  scanf("%d %d %d", &a, &b, &c);

  if (a < b && b < c) {
    printf("Yes\\n");
  } else {
    printf("No\\n");
  }

  return 0;
}


#include <algorithm>
#include <math.h>
#include <stdio.h>
#include <utility>

int main() {
  int a, b, c, e;
  int d = 0;

  scanf("%d %d %d", &a, &b, &c); //////////////////////

  while (d == 0) {
    if (a > b) {
      e = a;
      a = b;
      b = e;
    }
    if (b > c) {
      e = b;
      b = c;
      c = e;
    }
    if (a <= b) {
      if (b <= c) {
        d = 1;
      }
    }
  }
  printf("%d %d %d\\n", a, b, c);
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b, c, tmp;
  cin >> a >> b >> c;

  while (!(a < b && b < c)) {
    if (a > b) {
      tmp = a;
      a = b;
      b = tmp;
    }
    if (b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }
  }

  cout << a << " " << b << " " << c << endl;
  ;

  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b, c, tmp;
  cin >> a >> b >> c;

  while (!(a <= b && b <= c)) {
    if (a > b) {
      tmp = a;
      a = b;
      b = tmp;
    }
    if (b > c) {
      tmp = b;
      b = c;
      c = tmp;
    }
  }

  cout << a << " " << b << " " << c << endl;
  ;

  return 0;
}


#include <bits/stdc++.h>

using namespace std;

typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PI;

int main() {
  int a[3];
  for (int i = 0; i < 3; i++)
    cin >> a[i];
  sort(a, a + 3);
  for (int e : a)
    cout << e << " ";
  cout << endl;
  return 0;
}

#include <bits/stdc++.h>

using namespace std;

typedef long long LL;
typedef vector<int> VI;
typedef pair<int, int> PI;

int main() {
  int a[3];
  for (int i = 0; i < 3; i++)
    cin >> a[i];
  sort(a, a + 3);
  cout << a[0] << " " << a[1] << " " << a[2] << endl;
  return 0;
}


#include <algorithm>
#include <cctype>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
  int a, b, c, t;
  scanf("%d %d %d", &a, &b, &c);
  for (;;) {
    if (a < b && b < c) {
      break;
    }
    if (a > b) {
      t = a;
      a = b;
      b = t;
    }
    if (b > c) {
      t = b;
      b = c;
      c = t;
    }
  }
  printf("%d %d %d\\n", a, b, c);
  return 0;
}

#include <algorithm>
#include <cctype>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
  int a, b, c, t;
  scanf("%d %d %d", &a, &b, &c);
  for (;;) {
    if (a <= b && b <= c) {
      break;
    }
    if (a > b) {
      t = a;
      a = b;
      b = t;
    }
    if (b > c) {
      t = b;
      b = c;
      c = t;
    }
  }
  printf("%d %d %d\\n", a, b, c);
  return 0;
}


#include <iostream>

using namespace std;

int main(void) {
  int data[3], temp;

  cin >> data[0] >> data[1] >> data[2];

  while (!(data[0] < data[1] && data[1] < data[2])) {
    for (int i = 0; i < 2; ++i) {
      if (data[i] > data[i + 1]) {
        temp = data[i];
        data[i] = data[i + 1];
        data[i + 1] = temp;
      }
    }
  }
  cout << data[0] << " " << data[1] << " " << data[2] << endl;

  return 0;
}

#include <iostream>

using namespace std;

int main(void) {
  int data[3], temp;

  cin >> data[0] >> data[1] >> data[2];

  for (int i = 0; i < 2; ++i) {
    if (data[i] > data[i + 1]) {
      temp = data[i];
      data[i] = data[i + 1];
      data[i + 1] = temp;
    }
  }
  if (data[0] > data[1]) {
    temp = data[0];
    data[0] = data[1];
    data[1] = temp;
  }
  cout << data[0] << " " << data[1] << " " << data[2] << endl;

  return 0;
}


#include <iostream>
using std::cin;
using std::cout;
using std::endl;

bool swap(int &s, int &b);

int main() {
  int num[3] = {0, 0, 0};

  cin >> num[0] >> num[1] >> num[2];

  if (num[0] <= num[1])
    swap(num[1], num[0]);

  for (int i = 0, j = 0; j < 2;) {
    while (swap(num[j], num[i + 1])) {
      i++;
      if (i >= 2)
        i = 1;
    }
    j++;
    i = j;
  }
  cout << num[0] << " " << num[1] << " " << num[2] << endl;
  return 0;
}
bool swap(int &s, int &b) {
  if (s >= b) {
    int swap = 0;
    swap = s;
    s = b;
    b = swap;

    return true;
  }
  return false;
}

#include <iostream>
using std::cin;
using std::cout;
using std::endl;

int main() {
  int num[3] = {0, 0, 0};

  cin >> num[0] >> num[1] >> num[2];

  for (int i = 0; i < 2; i++) {
    for (int j = 1; j < 3; j++) {
      if (num[i] >= num[j]) {
        int swap = num[i];
        num[i] = num[j];
        num[j] = swap;
      }
    }
  }
  cout << num[0] << " " << num[1] << " " << num[2] << endl;
  return 0;
}


#include <algorithm>
#include <iostream>
#include <vector>

using namespace std;

vector<int> num;

int main() {

  while (1) {

    int a;

    num.clear();

    for (int i = 0; i < 3; i++) {
      cin >> a;
      num.push_back(a);
    }
    sort(num.begin(), num.end());

    for (int i = 0; i < 3; i++)
      cout << num[i] << " ";

    cout << "\\n";
  }

  return 0;
}

#include <algorithm>
#include <iostream>
#include <vector>

using namespace std;

vector<int> num;

int main() {

  int A[3] = {};

  while (cin >> A[0] >> A[1] >> A[2]) {
    num.clear();

    for (int i = 0; i < 3; i++)
      num.push_back(A[i]);

    sort(num.begin(), num.end());

    for (int i = 0; i < 2; i++)
      cout << num[i] << " ";

    cout << num[2] << "\\n";
  }

  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b, c;
  cin >> a >> b >> c;
  while (true) {
    if (a > b) {
      int d = a;
      int a = b;
      int b = a;
    } else if (b > c) {
      int d = b;
      int b = c;
      int c = d;
    } else if (a > b) {
      int d = a;
      int a = b;
      int b = a;
    } else {
      break;
    }
  }
  cout << a << " " << b << " " << c << endl;
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b, c, d;
  cin >> a >> b >> c;
  while (true) {
    if (a > b) {
      d = a;
      a = b;
      b = d;
    } else if (b > c) {
      d = b;
      b = c;
      c = d;
    } else if (a > b) {
      d = a;
      a = b;
      b = d;
    } else {
      break;
    }
  }
  cout << a << " " << b << " " << c << endl;
  return 0;
}


#include <stdio.h>

int main() {
  int a, b, c;
  int num[] = {0, 0, 0};
  int tmp = 0;

  scanf("%d%d%d", &a, &b, &c);

  num[0] = a;
  num[1] = b;
  num[2] = c;

  while (num[0] >= num[1] || num[1] > num[2]) {
    for (int i = 0; i < 2; i++) {
      if (num[i] > num[i + 1]) {
        tmp = num[i + 1];
        num[i + 1] = num[i];
        num[i] = tmp;
      }
    }
  }

  printf("%d %d %d\\n", num[0], num[1], num[2]);

  return 0;
}

#include <stdio.h>

int main() {
  int a, b, c;
  int num[] = {0, 0, 0};
  int tmp = 0;

  scanf("%d%d%d", &a, &b, &c);

  num[0] = a;
  num[1] = b;
  num[2] = c;

  while (num[0] > num[1] || num[1] > num[2]) {
    for (int i = 0; i < 2; i++) {
      if (num[i] > num[i + 1]) {
        tmp = num[i + 1];
        num[i + 1] = num[i];
        num[i] = tmp;
      }
    }
  }

  printf("%d %d %d\\n", num[0], num[1], num[2]);

  return 0;
}


#define len(arr) sizeof(arr) / sizeof(int)
#include <algorithm>
#include <iostream>
using namespace std;
int main() {
  int n[3];
  cin >> n[0] >> n[1] >> n[2];
  sort(n, n + len(n));
  for (int x : n)
    cout << x << ((x == n[2]) ? "" : " ");
  return 0;
}

#define len(arr) sizeof(arr) / sizeof(arr[0])
#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
  int in[3];
  cin >> in[0] >> in[1] >> in[2];
  sort(in, in + len(in));
  string out =
      to_string(in[0]) + " " + to_string(in[1]) + " " + to_string(in[2]);
  cout << out << endl;
  return 0;
}


#include <iostream>
using namespace std;

int main() {
  int a, b, c, x, y;
  cin >> a >> b >> c;
  while (!(a < b && b < c)) {
    if (a > b) {
      x = a;
      y = b;
      a = y;
      b = x;
    }
    if (b > c) {
      x = b;
      y = c;
      b = y;
      c = x;
    }
  }
  cout << a << " " << b << " " << c << endl;
  return 0;
}

#include <iostream>
using namespace std;

int main() {
  int a, b, c, x, y;
  cin >> a >> b >> c;
  while (!(a <= b && b <= c)) {
    if (a > b) {
      x = a;
      y = b;
      a = y;
      b = x;
    }
    if (b > c) {
      x = b;
      y = c;
      b = y;
      c = x;
    }
  }
  cout << a << " " << b << " " << c << endl;
  return 0;
}


#include <iostream>
int main(void) {
  int a, b, c, temp;
  std::cin >> a >> b >> c;
  while (1) {
    if (a < b && b < c) {
      std::cout << a << " " << b << " " << c << std::endl;
      break;
    }

    if (b > c) {
      temp = b;
      b = c;
      c = temp;
    }

    if (a > b) {
      temp = a;
      a = b;
      b = temp;
    }
  }
  return 0;
}

#include <algorithm>
#include <array>
#include <iostream>
int main(void) {
  std::array<int, 3> num;
  std::cin >> num[0] >> num[1] >> num[2];

  std::sort(num.begin(), num.end());

  std::cout << num[0] << " " << num[1] << " " << num[2] << std::endl;
  return 0;
}


#include <algorithm>
#include <iostream>
#include <vector>

using namespace std;
int main() {
  ios::sync_with_stdio(false);
  vector<int> v;
  cin >> v[0] >> v[1] >> v[2];
  sort(v.begin(), v.end());
  cout << v[0] << " " << v[1] << " " << v[2] << endl;
  return 0;
}

#include <algorithm>
#include <iostream>

using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int v[3];
  cin >> v[0] >> v[1] >> v[2];
  sort(v, v + 3);
  cout << v[0] << " " << v[1] << " " << v[2] << endl;
  return 0;
}


#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int t = 0;
loop:;
  t = 0;
  if (a > b) {
    t = t + 1;
    swap(a, b);
  }
  if (b > c) {
    t = t + 1;
    swap(a, b);
  }
  if (t != 0) {
    goto loop;
  }
  cout << a << " " << b << " " << c << endl;
  return 0;
}

#include <algorithm>
#include <iostream>
#include <string>
using namespace std;
int main() {
  int a, b, c;
  cin >> a >> b >> c;
  int t = 0;
loop:;
  t = 0;
  if (a > b) {
    t = t + 1;
    swap(a, b);
  }
  if (b > c) {
    t = t + 1;
    swap(b, c);
  }
  if (t != 0) {
    goto loop;
  }
  cout << a << " " << b << " " << c << endl;
  return 0;
}


#include <iostream>
using namespace std;

void swap(int *a, int *b) {
  int tmp = *a;
  *a = *b;
  *b = tmp;
}

int main(void) {
  int *a;
  int *b;
  int *c;
  cin >> *a >> *b >> *c;

  if (*a > *b)
    swap(a, b);
  if (*b > *c)
    swap(b, c);
  if (*a > *b)
    swap(a, b);

  cout << *a << " " << *b << " " << *c << endl;
  return 0;
}

#include <iostream>
using namespace std;

void swap(int *a, int *b) {
  int tmp = *a;
  *a = *b;
  *b = tmp;
}

int main(void) {
  int a;
  int b;
  int c;
  cin >> a >> b >> c;

  if (a > b)
    swap(&a, &b);
  if (b > c)
    swap(&b, &c);
  if (a > b)
    swap(&a, &b);

  cout << a << " " << b << " " << c << endl;
  return 0;
}


#include <iostream>
using namespace std;

// ポインタ渡しによる解法

void swap(int *a, int *b);

int main() {

  int a, b, c;

  cin >> a >> b >> c;

  if (a > b)
    swap(&a, &b);
  if (b > c)
    swap(&b, &c);

  if (a > b)
    swap(&a, &b);

  cout << a << " " << b << " " << c << endl;

  while (1) {
  }

  return 0;
}

void swap(int *a, int *b) {

  int temp = *a;
  *a = *b;
  *b = temp;
}

#include <iostream>
using namespace std;

// ポインタ渡しによる解法

void swap(int *a, int *b);

int main() {

  int a, b, c;

  cin >> a >> b >> c;

  if (a > b)
    swap(&a, &b);
  if (b > c)
    swap(&b, &c);

  if (a > b)
    swap(&a, &b);

  cout << a << " " << b << " " << c << endl;

  return 0;
}

void swap(int *a, int *b) {

  int temp = *a;
  *a = *b;
  *b = temp;
}