#include<bits/stdc++.h>
#define int long long
using namespace std;
constexpr int mod=1e9+7;
signed main(){
    int n,a;
    cin>>n;
    int arr[200001]={};
    while(cin>>a)
        arr[a]++;
    for(int i=1;i<=n;i++)
        cout<<arr[i]<<endl;
}
