#include <bits/stdc++.h>
using namespace std;
const long double eps = 1e-9;
const int inf = (1 << 30) - 1;
const long long inf64 = ((long long)1 << 62) - 1;
const long double pi = acos(-1);
template <class T>
T sqr(T x) {
  return x * x;
}
template <class T>
T abs(T x) {
  return x < 0 ? -x : x;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<long long> a(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  long long sum = 0;
  for (int i = 0; i < n; ++i) {
    sum += a[i];
  }
  sum -= n * (long long)(n - 1) / 2;
  long long x = sum / n;
  int r = sum % n;
  vector<long long> res(n);
  for (int i = 0; i < n; ++i) {
    if (i < r) {
      res[i] = i + x + 1;
    } else {
      res[i] = i + x;
    }
  }
  for (int i = 0; i < n; ++i) {
    cout << res[i] << (i + 1 < n ? ' ' : '\n');
  }
  return 0;
}
