#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<int> p(n);
  for (int i = 0; i < n; ++i) cin >> p[i];
  vector<pair<int, int>> q(n);
  for (int i = 0; i < n; ++i) {
    q[i].first = {n - p[i] - p[(i == n - 1 ? 0 : i + 1)]};
    q[i].second = i;
  }
  sort((q).begin(), (q).end());
  reverse((q).begin(), (q).end());
  vector<int> ans(n);
  for (int i = 0; i < n; ++i) {
    ans[q[i].second] = i;
  }
  for (int i = 0; i < n; ++i) {
    cout << ans[i] << " ";
  }
  cout << "\n";
}
