#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long MAXN = 1e6 + 5;
int n;
int len[MAXN];
double a[MAXN];
double b[MAXN];
double s[MAXN];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    int temp;
    cin >> temp;
    a[i] = temp;
    s[i] = s[i - 1] + temp;
  }
  int p = 0;
  for (int i = 1; i <= n; i++) {
    b[++p] = a[i];
    len[p] = 1;
    while (p > 1 && b[p] < b[p - 1]) {
      b[p - 1] =
          (b[p] * len[p] + b[p - 1] * len[p - 1]) / (len[p] + len[p - 1]);
      len[p - 1] += len[p];
      p--;
    }
  }
  for (int i = 1; i <= p; i++) {
    for (int j = 1; j <= len[i]; j++) {
      cout << setprecision(12) << b[i] << '\n';
    }
  }
  return 0;
}
