#include <bits/stdc++.h>
using namespace std;
constexpr int inf = 0x3f3f3f3f;
constexpr long long INF = 9123456789123456789;
constexpr long long mod = 1000000007LL;
const int N = 1000003;
int n;
vector<long long> a, p;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.setf(ios::fixed);
  cout.precision(12);
  cin >> n;
  a.assign(n + 1, 0);
  p.assign(n + 1, 0);
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    a[i] += a[i - 1];
  }
  int top(0);
  for (int i = 1; i <= n; ++i) {
    while (top && 1.0 * (a[p[top]] - a[p[top - 1]]) / (p[top] - p[top - 1]) -
                          1.0 * (a[i] - a[p[top - 1]]) / (i - p[top - 1]) >
                      1e-12)
      --top;
    p[++top] = i;
  }
  for (int i = 1; i <= top; ++i) {
    double x = 1.0 * (a[p[i]] - a[p[i - 1]]) / (p[i] - p[i - 1]);
    for (int j = p[i - 1]; j < p[i]; ++j) cout << x << '\n';
  }
}
