#include <bits/stdc++.h>
using namespace std;
const int maxn = 1100000;
int n;
long long a[maxn], sum;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%lld", &a[i]), sum += a[i];
  long long sum2 = (long long)(1 + n) * n / 2;
  long long add = (sum - sum2) % n, bas = (sum - sum2) / n;
  for (int i = 1; i <= n; i++) {
    long long x = bas + i;
    if (i <= add) x++;
    printf("%lld%c", x, " \n"[i == n]);
  }
  return 0;
}
