#include <bits/stdc++.h>
using namespace std;
mt19937 rnd(time(0));
const double eps = 1e-10;
const long long inf = 0x3f3f3f3f3f3f3f3fLL;
const long long N = 2e5 + 5;
const long long MOD = 1e9 + 7;
long long pw(long long b, long long p) {
  long long res = 1;
  while (p > 0) {
    if (p & 1) res = res * b % MOD;
    b = b * b % MOD;
    p >>= 1;
  }
  return res;
}
int32_t main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  long long n;
  cin >> n;
  vector<long long> h(n);
  long long sum = 0;
  for (long long i = 0; i < n; i++) {
    cin >> h[i];
    sum += h[i];
  }
  sum -= (n * (n - 1)) / 2;
  long long rem = sum % n;
  long long cnt = sum / n;
  for (long long i = 0; i < n; i++) {
    cout << i + cnt + (rem >= i + 1) << ' ';
  }
  return 0;
}
