#include <bits/stdc++.h>
using namespace std;
using LL = long long;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  LL sum = 0;
  for (int i = 0; i < n; ++i) {
    LL a;
    cin >> a;
    sum += a;
  }
  LL base = 1LL * (1 + n) * n / 2;
  LL add = (sum - base) / n;
  sum -= base + add * n;
  for (int i = 0; i < sum; ++i) cout << i + 1 + add + 1 << " ";
  for (int i = sum; i < n; ++i) cout << i + 1 + add << " ";
  cout << endl;
  return 0;
}
