#include <bits/stdc++.h>
using namespace std;
int n;
long long a[1000005];
int main() {
  scanf("%d", &n);
  long long sum = 0;
  for (int i = 1; i <= n; i++) {
    scanf("%lld", &a[i]);
    sum += a[i];
  }
  int flag = 1;
  for (int i = 1; i < n; i++) {
    if (a[i + 1] - a[i] > 1) {
      flag = 0;
      break;
    }
  }
  if (flag) {
    for (int i = 1; i <= n; i++) printf("%lld ", a[i]);
    return 0;
  }
  long long x = (sum * 2 / n + 1 - n) / 2, tot = 0;
  for (int i = 1; i <= n; i++) {
    a[i] = x - 1 + i;
    tot = tot + a[i];
  }
  for (int i = 1; i <= n; i++) {
    if (tot < sum) {
      if (a[i] < a[i + 1] || i == n) {
        a[i]++;
        tot++;
      }
    } else {
      break;
    }
  }
  for (int i = 1; i <= n; i++) printf("%lld ", a[i]);
  printf("\n");
  return 0;
}
