#include <bits/stdc++.h>
using namespace std;
int n;
int x;
double v[1000001], mins[1000001];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    v[i] = double(x);
  }
  mins[n] = v[n];
  for (int i = n - 1; i >= 1; i--) mins[i] = min(mins[i + 1], v[i]);
  double suma = 0;
  for (int i = 1; i <= n; i++) {
    int poz = i;
    double suma = v[i];
    double minim = v[i];
    double maxim = v[i];
    int nr = 1;
    for (int j = i + 1; j <= n; j++) {
      suma += v[j];
      nr++;
      if (suma / nr <= minim) {
        minim = suma / nr;
        poz = j;
      }
      maxim = max(v[j], maxim);
      if (mins[j + 1] >= maxim) break;
    }
    for (int j = i; j <= poz; j++) v[j] = minim;
    i = poz;
  }
  for (int i = 1; i <= n; i++) cout << fixed << setprecision(9) << v[i] << '\n';
  return 0;
}
