#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  long long s = 0;
  vector<long long> a(n);
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    s += a[i];
  }
  long long p1 = (s - (n - 1) * n / 2) / n + 1;
  long long s1 = (2 * p1 + n - 1) * n / 2;
  long long d = s1 - s;
  for (long long i = 0; i < n; i++) {
    cout << p1 + i - (n - i <= d) << " ";
  }
  return 0;
}
