#include <bits/stdc++.h>
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(NULL);
  int n;
  long long sum = 0, res1, res2;
  std::cin >> n;
  std::vector<long long> a(n + 1);
  for (auto &i : a) std::cin >> i, sum += i;
  res1 = sum * 2ll / n - n + 1;
  res1 >>= 1;
  std::vector<long long> answer(n + 1);
  for (int i = 1; i <= n; i++) answer[i] = i;
  for (int i = 1; i <= n; i++) answer[i] += res1 - 1;
  res2 = res1 * 2 + n - 1;
  res2 *= n;
  res2 >>= 1;
  for (int i = 1; i <= sum - res2; i++) answer[i]++;
  for (int i = 1; i <= n; i++) std::cout << answer[i] << ' ';
  std::cout << '\n';
  return 0;
}
