#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 10;
long long a[maxn], ans[maxn];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  long long sum = 0, tmp = 0;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
    sum += a[i] - i;
    ans[i] = i;
  }
  tmp += sum / n;
  sum -= tmp * n;
  for (int i = 1; i <= sum; ++i) {
    ans[i]++;
  }
  for (int i = 1; i <= n; ++i) {
    cout << ans[i] + tmp << " ";
  }
  return 0;
}
