#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<long long> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  stack<long long> s;
  stack<long long> c;
  for (int j = n - 1; j >= 0; j--) {
    long long cs = a[j];
    long long cc = 1;
    while (!s.empty() && s.top() * cc <= cs * c.top()) {
      cc += c.top();
      c.pop();
      cs += s.top();
      s.pop();
    }
    c.push(cc);
    s.push(cs);
  }
  while (!s.empty()) {
    ostringstream cline;
    cline << fixed << setprecision(17);
    cline << (double)s.top() / c.top() << "\n";
    string thisline = cline.str();
    for (int i = 0; i < c.top(); i++) cout << thisline;
    s.pop();
    c.pop();
  }
  return 0;
}
