#include <bits/stdc++.h>
using namespace std;
inline long long read() {
  long long s = 0, w = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') w = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') s = s * 10 + ch - '0', ch = getchar();
  return s * w;
}
signed main() {
  long long n = read(), sum = 0;
  for (long long i = 1; i <= n; i++) sum += read();
  long long x = (((sum << 1) / n - n + 1) >> 1),
            y = sum - ((((x << 1) + n - 1) * n) >> 1);
  for (long long i = 1; i <= n; i++)
    if (i <= y)
      printf("%lld ", i + x);
    else
      printf("%lld ", i + x - 1);
  return 0;
}
