#include <bits/stdc++.h>
using namespace std;
const long long int INF = 2e18;
const long long int N = 2e5 + 5;
void null() {
  long long int n;
  cin >> n;
  vector<long long int> a;
  long long int sum1 = 0;
  for (long long int i = 0; i < n; i++) {
    long long int x;
    cin >> x;
    a.push_back(x);
    sum1 += x;
  }
  long long int k = (2 * sum1 - (n * (n - 1))) / (n * 2);
  long long int sum2 = n * k + (n * (n - 1)) / 2;
  long long int res = sum1 - sum2;
  for (long long int i = 1; i < res + 1; i++) cout << k + i << " ";
  for (long long int i = 0; i < n - res; i++) cout << k + res + i << " ";
  cout << '\n';
  return;
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int t = 1;
  clock_t start, end;
  start = clock();
  while (t--) {
    null();
  }
  end = clock();
  double time_taken = double(end - start) / double(CLOCKS_PER_SEC);
}
