#include <bits/stdc++.h>
using namespace std;
int a[50001], n;
pair<int, int> b[50001];
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> a[i];
  a[n] = a[0];
  for (int i = 0; i < n; ++i) b[i] = make_pair(a[i] + a[i + 1], i);
  sort(b, b + n);
  for (int i = 0; i < n; ++i) a[b[i].second] = i;
  for (int i = 0; i < n; ++i) cout << a[i] << ' ';
}
