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