#include <bits/stdc++.h>   using namespace std;   void solve() {     long long n;     cin >> n;     vector<long long> v(n + 1);     long long s = 0;     for (long long i = 1; i <= n; i++) {       cin >> v[i];       s += v[i] - i, v[i] = i;     }     for (long long i = 1; i <= n; i++) v[i] += s / n;     for (long long i = 1; i <= s % n; i++) v[i]++;     for (long long i = 1; i <= n; i++) cout << v[i] <<    n [i == n];   }   signed main() {     ios::sync_with_stdio(0);     cin.tie(0), cout.tie(0);     long long t = 1;     while (t--) solve();     return 0;   }   