#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int MAXN = 50000 + 10;
int a[MAXN], b[MAXN], ans[MAXN];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    b[i] = i;
  }
  a[n + 1] = a[1];
  sort(b + 1, b + n + 1, [](const int& A, const int& B) -> bool {
    return a[A] + a[A + 1] < a[B] + a[B + 1];
  });
  for (int i = 1; i <= n; i++) {
    ans[b[i]] = i - 1;
  }
  for (int i = 1; i <= n; i++) {
    cout << ans[i] << ' ';
  }
  cout << endl;
  return 0;
}
