#include <bits/stdc++.h>
using namespace std;
const long long N = 1e6 + 10;
inline long long read() {
  long long ret = 0;
  char ch = getchar();
  long long f = 1;
  while (!isdigit(ch) && ch ^ '-') ch = getchar();
  if (ch == '-') f = -1, ch = getchar();
  while (isdigit(ch)) {
    ret = (ret << 1) + (ret << 3) + (ch ^ '0');
    ch = getchar();
  }
  return ret * f;
}
long long t, NederlandAKIOI, a[N];
signed main() {
  NederlandAKIOI = read();
  long long Karry5307AKIOI = 0;
  for (register long long i = 1; i <= NederlandAKIOI; ++i) {
    a[i] = read();
    Karry5307AKIOI += a[i];
  }
  long long ChenXingLingAKIOI = (Karry5307AKIOI * 2) / NederlandAKIOI;
  long long YLWangAKIOI = (ChenXingLingAKIOI - NederlandAKIOI + 1) / 2;
  long long ZhengFourthAKIOI =
      Karry5307AKIOI -
      (NederlandAKIOI * ((YLWangAKIOI * 2) + NederlandAKIOI - 1) / 2);
  for (register long long i = 1; i <= NederlandAKIOI; ++i)
    printf("%lld ", YLWangAKIOI - (i > ZhengFourthAKIOI) + i);
  puts("");
  return 0;
}
