#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 10, INF = 0x3f3f3f3f;
long long n, v, sum;
int main() {
  scanf("%lld", &n);
  for (int i = 0; i < n; ++i) {
    scanf("%lld", &v);
    sum += v;
  }
  sum -= n * (n - 1) / 2;
  for (int i = 0; i < n; ++i) {
    printf("%lld%c", i + (sum / n) + (i < sum % n), " \n"[i == n - 1]);
  }
  return 0;
}
