#include <bits/stdc++.h>
using namespace std;
const int NMAX = 50007;
int n, a[NMAX], _id[NMAX], ans[NMAX];
int id(int i) { return i % n; }
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) _id[i] = i;
  sort(_id, _id + n,
       [](int i, int j) { return a[i] + a[id(i + 1)] < a[j] + a[id(j + 1)]; });
  for (int i = 0; i < n; i++) ans[_id[i]] = i;
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  return 0;
}
