#include <bits/stdc++.h>
using namespace std;
int main() {
  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 k = sum / n;
  long long p = sum - k * n;
  for (long long i = 0; i < n; ++i) {
    h[i] = k + i;
    if (i < p) {
      h[i]++;
    }
  }
  for (long long i = 0; i < n; ++i) cout << h[i] << ' ';
  return 0;
}
