#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1000100;
int N;
long long HT;
long long H[MAXN];
vector<int> vspec;
long long res[MAXN];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cin >> N;
  HT = 0;
  for (int i = 0; i < N; i++) {
    cin >> H[i];
    HT += H[i];
  }
  long long chi = H[0];
  for (int i = 1; i < N; i++) {
    long long nleft = (H[i] - chi - 1);
    while (vspec.size() && nleft >= (i - vspec.back())) {
      nleft -= (i - vspec.back());
      vspec.pop_back();
      chi++;
    }
    if (!vspec.size()) {
      long long nadd = (nleft / (i + 1));
      chi += nadd;
      nleft -= nadd * (i + 1);
      if (nleft) {
        vspec.push_back(nleft - 1);
      }
      chi++;
    } else {
      vspec[vspec.size() - 1] += nleft;
      chi++;
    }
  }
  for (int i = 0; i < N - 1; i++) res[i] = -1;
  for (int x : vspec) res[x] = 0;
  res[N - 1] = chi;
  for (int i = N - 2; i >= 0; i--) {
    res[i] += res[i + 1];
  }
  for (int i = 0; i < N; i++) {
    if (i) cout << " ";
    cout << res[i];
  }
  cout << "\n";
}
