#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 10, mod = 1e9 + 7;
const long long inf = 1e18;
template <typename A, typename B>
ostream& operator<<(ostream& out, pair<A, B> p) {
  out << "{ " << p.first << ", " << p.second << " }";
  return out;
}
template <typename T>
ostream& operator<<(ostream& out, vector<T> v) {
  out << "[ ";
  for (int i = 0; i < int((v).size()); i++) {
    out << v[i];
    if (i != int((v).size()) - 1) out << " ,";
  }
  out << " ]";
  return out;
}
vector<pair<long long, int> > v;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie();
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    long long x;
    cin >> x;
    int cnt = 1;
    while (int((v).size()) && x * v.back().second <= v.back().first * cnt) {
      cnt += v.back().second;
      x += v.back().first;
      v.pop_back();
    }
    v.push_back({x, cnt});
  }
  for (auto x : v) {
    long double num = (long double)x.first / x.second;
    for (int i = 0; i < x.second; i++)
      cout << setprecision(10) << fixed << num << "\n";
  }
  return 0;
}
