//
//  main.cpp
//  HelloWorld
//
//  Created by purple on 2020/04/13.
//  Copyright © 2020 Purple. All rights reserved.
//

#include <iostream>
#include <algorithm>
#include <string>
#include <fstream>

using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...


    
    int n;
    cin >> n;
    int a[n-1];
    
    for(int i=0; i< n-1; i++)  cin >> a[i];
    
    int ans[n];
    for(int i=0; i< n; i++)  ans[i] = 0;
    
    int tmp = 0;
    for (int i=0; i<n-1; i++){
        tmp = a[i] ;
        ans[tmp]++;
    }
    
    for(int i=1; i<n; i++)
        cout << ans[i] << endl;
    cout << 0 << endl;
    
    
    return 0;
    
}
