#include <bits/stdc++.h>
using namespace std;
void Main();
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  while (~cin.peek()) Main(), cin.get();
  return 0;
}
void Main() {
  int n;
  cin >> n;
  vector<long long> a(n);
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  if (sum * 2 % n == 0) {
    if ((sum * 2 / n - n + 1) % 2 == 0) {
      long long x = (sum * 2 / n - n + 1) / 2;
      for (int i = 0; i < n; i++) {
        cout << x + i << " \n"[i == n - 1];
      }
      return;
    }
  }
  long long x = (sum * 2 / n - n + 1) / 2 + 10;
  while ((2 * x + n - 1) * n / 2 >= sum) {
    x--;
  }
  x++;
  long long buf = (2 * x + n - 2) * (n - 1) / 2;
  long long y = sum - buf;
  for (long long i = x; i <= y; i++) {
    cout << i << " ";
  }
  for (long long i = y; i <= x + n - 2; i++) {
    cout << i << " \n"[i == x + n - 2];
  }
}
