#include <bits/stdc++.h>
int n;
long long sum = 0, tmp;
int main(void) {
  scanf("%d", &n), tmp = -1;
  for (int i = 1; i <= n; i++) scanf("%lld", &tmp), sum += tmp - i + 1;
  bool flag = false;
  for (int i = 1; i <= n; i++) {
    if (flag)
      putchar(' ');
    else
      flag = true;
    if (sum % (long long)n >= i)
      printf("%lld", (long long)(i - 1) + sum / n + 1);
    else
      printf("%lld", (long long)(i - 1) + sum / n);
  }
  putchar('\n');
  return 0;
}
