#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  ;
  int n;
  cin >> n;
  vector<long long> a(n);
  for (auto &i : a) cin >> i;
  stack<pair<long long, long long> > st;
  for (int i = 0; i < n; i++) {
    pair<long long, long long> curr = {a[i], 1};
    while (!st.empty() &&
           st.top().first * curr.second >= st.top().second * curr.first) {
      curr.first += st.top().first;
      curr.second += st.top().second;
      st.pop();
    }
    st.push(curr);
  }
  stack<double> ans;
  while (!st.empty()) {
    int m = st.top().second;
    double avg = double(st.top().first) / m;
    while (m--) {
      ans.push(avg);
    }
    st.pop();
  }
  cout << fixed << setprecision(12);
  while (!ans.empty()) {
    cout << ans.top() << "\n";
    ans.pop();
  }
  return 0;
}
