#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int64_t sum = 0;
  for (int i = 0; i < n; i++) {
    int64_t h;
    cin >> h;
    sum += h - i;
  }
  int64_t q = sum / n;
  int64_t r = sum % n;
  for (int i = 0; i < n; i++) {
    int64_t h = i + q + (i < r ? 1 : 0);
    cout << h << ' ';
  }
  cout << endl;
}
