#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vb = vector<bool>;
using vvi = vector<vector<int>>;
using vll = vector<long long>;
using vpi = vector<pair<int, int>>;
using pii = pair<int, int>;
const char nl = '\n';
const ll MOD = 1e9 + 7;
string to_string(char c) { return string(1, c); }
string to_string(const char* s) { return (string)s; }
string to_string(string s) { return s; }
string to_string(bool b) { return b ? "true" : "false"; }
string to_string(vector<bool> v) {
  string res = "{";
  for (int i = 0; i < ((int)v.size()); ++i) res += char('0' + v[i]);
  res += "}";
  return res;
}
template <size_t SZ>
string to_string(bitset<SZ> b) {
  string res = "";
  for (int i = 0; i < (SZ); ++i) res += char('0' + b[i]);
  return res;
}
template <class A, class B>
string to_string(pair<A, B> p);
template <class T>
string to_string(T& v) {
  bool fst = 1;
  string res = "{";
  for (const auto& x : v) {
    if (!fst) res += ", ";
    fst = 0;
    res += to_string(x);
  }
  res += "}";
  return res;
}
template <class A, class B>
string to_string(pair<A, B> p) {
  return "(" + to_string(p.first) + ", " + to_string(p.second) + ")";
}
void DBG() { cerr << "]" << endl; }
template <class H, class... T>
void DBG(H h, T... t) {
  cerr << to_string(h);
  if (sizeof...(t)) cerr << ", ";
  DBG(t...);
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vi a(n);
  for (int i = 0; i < (n); ++i) cin >> a[i];
  stack<pair<ll, ll>> st;
  for (int i = 0; i < (n); ++i) {
    pair<ll, ll> cur = {a[i], 1};
    while (!st.empty() &&
           st.top().first * cur.second >= st.top().second * cur.first) {
      cur.first += st.top().first;
      cur.second += st.top().second;
      st.pop();
    }
    st.push(cur);
  }
  vector<pair<ll, ll>> res;
  while (!st.empty()) {
    auto [sum, cnt] = st.top();
    st.pop();
    for (int i = 0; i < (cnt); ++i) res.push_back({sum, cnt});
  }
  reverse(res.begin(), res.end());
  assert((int)res.size() == n);
  for (int i = 0; i < (n); ++i) {
    cout << fixed << setprecision(9) << ((double)res[i].first / res[i].second)
         << nl;
  }
  return 0;
}
