#include <bits/stdc++.h>
using namespace std;
const int mxn = 1e6 + 10;
long long h[mxn], ans[mxn];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> h[i], h[i] -= 1ll * i;
  long long sum = 0;
  for (int i = 0; i < n; i++) sum += h[i];
  long long e = sum / n, r = sum % n;
  for (int i = 0; i < n; i++) ans[i] = e;
  for (int i = 0; i < r; i++) ans[i]++;
  for (int i = 0; i < n; i++) ans[i] += 1ll * i;
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  cout << '\n';
  return 0;
}
