#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long int n;
  cin >> n;
  vector<long long int> a(n);
  for (long long int i = 0; i < (n); ++i) cin >> a[i];
  long long int sum = 0;
  for (long long int i = 0; i < (n); ++i) sum += a[i];
  long long int len = n;
  for (long long int i = 0; i < (n); ++i) {
    long double x = (long double)(sum) / len - (long double)(len - 1) / 2;
    long long int val = ceil(x);
    a[i] = val;
    sum -= val;
    len--;
  }
  for (long long int i = 0; i < (n); ++i) cout << a[i] << " ";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
