#include <bits/stdc++.h>
using namespace std;
const long double EPS = 1e-9;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  vector<pair<long double, int> > st;
  for (int i = 0; i < n; i++) {
    long double now = a[i];
    int start = i;
    while (st.size() && st.back().first > now) {
      int la = start - st.back().second, lb = i - start + 1;
      long double first = st.back().first, second = now;
      now = (first * la + second * lb) / (la + lb);
      start = st.back().second;
      st.pop_back();
    }
    st.push_back({now, start});
  }
  cout.precision(20);
  for (int i = 1; i < (int)st.size(); i++) {
    for (int l = st[i - 1].second; l < st[i].second; l++) {
      cout << st[i - 1].first << "\n";
    }
  }
  for (int l = st.back().second; l < n; l++) {
    cout << st.back().first << "\n";
  }
}
