#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long n;
  scanf("%llu", &n);
  unsigned long long tot = 0;
  for (int i = 0; i < n; i++) {
    unsigned long long k;
    scanf("%llu", &k);
    tot += k;
  }
  tot -= (n * (n - 1)) / 2;
  for (unsigned long long i = 0; i < n; i++) {
    if (i < (tot % n)) {
      printf("%llu ", (i + (tot / n) + 1ULL));
    } else {
      printf("%llu ", (i + (tot / n)));
    }
  }
  printf("\n");
  return 0;
}
