#include <bits/stdc++.h>
using namespace std;
const int N = 1e6 + 5;
int A[N];
pair<int, int> B[N];
int C[N];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> A[i];
  }
  for (int i = 0; i < n; i++) {
    B[i] = make_pair(A[i] + A[(i + 1) % n], i);
  }
  sort(B, B + n);
  for (int i = 0; i < n; i++) {
    C[B[i].second] = i;
  }
  for (int i = 0; i < n; i++) {
    cout << C[i] << " ";
  }
  cout << "\n";
  return 0;
}
