#include <bits/stdc++.h>
using namespace std;
using db = long double;
using pll = pair<long long, long long>;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t = 0, i, x, j, y, z, k, n;
  cin >> n;
  std::vector<long long> v(n, 0);
  long long sum = 0, toGive = (n * n - n) / 2;
  for (i = 0; i < n; i += 1) cin >> x, sum += x;
  for (i = 0; i < n; i += 1) {
    v[i] = i + (sum - toGive) / n;
    t += v[i];
  }
  sum -= t;
  42;
  for (i = 0; i <= n and sum > 0; i++) {
    v[i]++;
    sum--;
  }
  42;
  for (auto zx : v) cout << zx << " ";
  cout << "" << '\n';
  ;
}
