#include <bits/stdc++.h>
using namespace std;
const long long N = 1e6 + 10;
signed main() {
  ios::sync_with_stdio(false);
  long long n;
  cin >> n;
  long long s = 0;
  for (long long i = 0; i < n; i++) {
    long long x;
    cin >> x;
    s += x;
  }
  s -= n * (n - 1) / 2;
  for (long long i = 0; i < n; i++) {
    cout << i + s / n + (i < s % n) << " \n"[i == n - 1];
  }
  return 0;
}
