#include <bits/stdc++.h>
using namespace std;
vector<long long> vin(long long n) {
  vector<long long> a(n);
  for (long long i = 0; i < n; i += 1) cin >> a[i];
  return a;
}
long long intin() {
  long long n;
  cin >> n;
  return n;
}
char charin() {
  char a;
  cin >> a;
  return a;
}
string strin() {
  string s;
  cin >> s;
  return s;
}
long long factorial(long long n) {
  return (n == 1 || n == 0) ? 1 : n * factorial(n - 1);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  vector<long long> a = vin(n);
  cout << fixed << setprecision(10);
  vector<pair<double, long long> > st(n + 1);
  long long index = 0;
  for (long long i = 0; i < n; i += 1) {
    double k = a[i];
    long long p = 1;
    while (index > 0 and k < st[index].first) {
      k = (k * p + st[index].first * st[index].second) / (p + st[index].second);
      p += st[index].second;
      index--;
    }
    st[++index] = make_pair(k, p);
  }
  for (long long i = 0; i < index + 1; i += 1) {
    for (long long j = 0; j < st[i].second; j += 1) {
      cout << st[i].first << '\n';
    }
  }
  return 0;
}
