#include <bits/stdc++.h>
using namespace std;
template <class L, class R>
ostream &operator<<(ostream &os, pair<L, R> P) {
  return os << "(" << P.first << "," << P.second << ")";
}
template <class T>
ostream &operator<<(ostream &os, vector<T> V) {
  os << "[";
  for (auto vv : V) os << vv << ",";
  return os << "]";
}
template <class TH>
void _dbg(const char *sdbg, TH h) {
  cerr << sdbg << '=' << h << '\n';
}
template <class TH, class... TA>
void _dbg(const char *sdbg, TH h, TA... a) {
  while (*sdbg != ',') cerr << *sdbg++;
  cerr << '=' << h << ',';
  _dbg(sdbg + 1, a...);
}
const long long N = 1e6 + 7;
long long n, a[N], dp[N];
long double m[N], pre[N], ans[N];
long double sum(long long l, long long r) {
  long double ret = pre[r];
  if (l > 0) ret -= pre[l - 1];
  return ret;
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  cout << fixed << setprecision(13);
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    pre[i] = a[i] + (i > 0 ? pre[i - 1] : 0);
  }
  stack<pair<pair<long long, long long>, long double> > st;
  for (long long i = 0; i < n; i++) {
    long long lid = i;
    while (!st.empty() && (sum(st.top().first.first, i) /
                           (i - st.top().first.first + 1)) < st.top().second) {
      lid = st.top().first.first;
      st.pop();
    }
    st.push(make_pair(make_pair(lid, i), sum(lid, i) / (i - lid + 1)));
  }
  vector<long double> v;
  while (!st.empty()) {
    auto p = st.top();
    st.pop();
    for (long long i = p.first.first; i <= p.first.second; i++)
      v.push_back(p.second);
  }
  reverse((v).begin(), (v).end());
  for (auto x : v) cout << x << '\n';
  return 0;
}
