#include <bits/stdc++.h>
using namespace std;
int ans[100005];
vector<pair<int, int> > v;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    v.push_back(make_pair(temp, i));
  }
  sort(v.begin(), v.end());
  int p = 0;
  for (int i = 0; i < n; i++) {
    int x = v[i].second;
    ans[v[i].second] = -1;
    if (x < p)
      ans[v[i].second] = p - x - 1;
    else
      p = x;
  }
  for (int i = 0; i < n; i++) cout << ans[i] << " ";
  return 0;
}
