#include <bits/stdc++.h>
using namespace std;
int n;
long long a[1000005];
long long ps[1000005];
int opt[1000005];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (int i = (1); i <= (signed)(n); i++) {
    cin >> a[i];
    ps[i] = ps[i - 1] + a[i];
  }
  int rt = n;
  long long sm = a[n];
  opt[n] = n;
  for (int i = (n - 1); i >= 1; i--) {
    if (a[i] * (rt - i) < sm) {
      opt[i] = i;
      rt = i;
      sm = a[i];
    } else {
      opt[i] = rt;
      sm += a[i];
      if (rt == n) continue;
      bool ree = true;
      do {
        int o = opt[rt + 1];
        long long sm2 = ps[o] - ps[i - 1];
        if (sm2 * (rt - i + 1) <= sm * (o - i + 1)) {
          opt[i] = o;
          sm = sm2;
          rt = o;
        } else {
          ree = false;
        }
      } while (ree && rt != n);
    }
  }
  int i = 1;
  while (i <= n) {
    int j = opt[i];
    long double avg = (ps[j] - ps[i - 1]) / ((long double)(j - i + 1));
    for (int _ = (i); _ <= (signed)(j); _++) {
      cout << fixed << setprecision(10) << avg << "\n";
    }
    i = j + 1;
  }
  return 0;
}
