#include <bits/stdc++.h>
#pragma GCC optimize(2)
using namespace std;
inline long long read() {
  char c = getchar();
  long long x = 0;
  bool f = 0;
  for (; !isdigit(c); c = getchar()) f ^= !(c ^ 45);
  for (; isdigit(c); c = getchar()) x = (x << 1) + (x << 3) + (c ^ 48);
  if (f) x = -x;
  return x;
}
long long n, sum;
long long a[1000005];
bool flag, vis[1000005];
signed main() {
  n = read();
  for (register long long i = (1); i <= (n); ++i) sum += read();
  for (register long long i = (1); i <= (n); ++i) a[i] = i, sum -= i;
  for (register long long i = (1); i <= (n); ++i) a[i] += sum / n;
  sum %= n;
  for (register long long i = (1); i <= (sum); ++i) a[i]++;
  for (register long long i = (1); i <= (n); ++i) cout << a[i] << ' ';
  return 0;
}
