#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n;
  cin >> n;
  long long int a[n];
  long long int s = 0;
  for (int i = 0; i < n; i++) cin >> a[i], s += a[i];
  long long int x = n * (n - 1) / 2;
  long long int xx = s - x;
  x = xx / n;
  for (long long int i = 1; i <= n; i++) {
    cout << i - 1LL + x + (i <= (xx % n) ? 1LL : 0LL) << " ";
  }
  return 0;
}
