#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(ll i=0;i<n;i++)
#define all(n) n.begin(),n.end()

int main() {
  int n;
  cin >> n;
  vector<int>a(n),cnt(n+2);
  rep(i,n){
    cin >> a[i];
    cnt[a[i]]++
  }
  rep(i,n) cout << cnt[a[i]+1] << endl;
  return 0;
}