#include <bits/stdc++.h>
using namespace std;
const int mod = (int)1e9 + 7;
const int N = (int)1e6 + 123;
const long long inf = (long long)1e18 + 1;
const double pi = acos(-1.0);
const double eps = 1e-9;
const int dx[] = {0, 0, 1, 0, -1};
const int dy[] = {0, 1, 0, -1, 0};
int n;
long long h[N], sum;
inline void boost() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
inline void Solve() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> h[i], sum += h[i] - i + 1;
  for (int i = 1; i <= n; i++) cout << i - 1 + sum / n + (i <= sum % n) << ' ';
}
signed main() {
  boost();
  int tt = 1;
  while (tt--) {
    Solve();
  }
  return 0;
}
