#include <bits/stdc++.h>
using namespace std;
void set_file(string s) {
  freopen((s + ".in").c_str(), "r", stdin);
  freopen((s + ".out").c_str(), "w", stdout);
}
mt19937 gen(228);
int rnd(int l, int r) { return uniform_int_distribution<int>(l, r - 1)(gen); }
const int N = 1e6 + 1;
long long h[N];
void solve() {
  int n;
  cin >> n;
  long long s = 0;
  for (int i = 0; i < n; ++i) {
    cin >> h[i];
    h[i] -= i;
    s += h[i];
  }
  for (int i = 0; i < n; ++i) {
    h[i] = s / n + (i < s % n) + i;
    cout << h[i] << ' ';
  }
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  solve();
  return 0;
}
