#include <iostream>
using namespace std;

int N;
int buka[200010];
int main(){
    cin >> N;
    int tmp;
        
    for(int i = 0; i < N; ++i){
        buka[i] = 0;
    }
    for(int i = 0; i < N-1; ++i){
        cin >> tmp;
        buka[tmp]++;
    }
    
    for(int i = 0; i < N; ++i){
        cout << buka[i] << endl;
    }
    return 0;
}