#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, min, answer[100010];
  vector<pair<int, int> > line;
  cin >> n;
  for (int i(0); i < (n); i++) {
    int age;
    pair<int, int> p;
    cin >> age;
    p.first = age;
    p.second = i;
    line.push_back(p);
  }
  sort((line).begin(), (line).end());
  min = -1;
  for (int i(0); i < (n); i++) {
    int val;
    if (line[i].second > min) {
      min = line[i].second;
    }
    val = min - line[i].second - 1;
    if (val < 0) {
      val = -1;
    }
    answer[line[i].second] = val;
  }
  for (int i(0); i < (n); i++) {
    cout << answer[i] << " ";
  }
}
