#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(NULL); freopen("shuffle.in", "r", stdin); freopen("shuffle.out", "w", stdout); int n; cin >> n; vector a(n); for(int i = 0; i < n; ++i){ cin >> a[i]; a[i] = a[i] - i; } sort(a.begin(), a.end()); for(int i = 0; i < n; ++i) a[i] += i; for(int i = 0; i < n; ++i) cout << a[i] << " "; cout << "\n"; }