#include <bits/stdc++.h>
using namespace std;
int n;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    long long x;
    cin >> x;
    sum += x;
  }
  sum -= (long long)(n - 1) * (n - 2) / 2;
  int x = sum % n;
  long long f = sum / n;
  for (int i = 0; i < n; i++) {
    cout << f + i - (i > x) << " ";
  }
}
