#include <bits/stdc++.h>
using namespace std;
int n, a[50010], out[50010];
pair<int, int> b[50010];
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &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++) out[b[i].second] = i;
  for (int i = 0; i < n; i++) printf("%d ", out[i]);
  return 0;
}
