#include <iostream>
#include <iomanip>
#include <cstdint>
#include <cmath>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <numeric>
#include <limits>

int main() {

    int64_t N;
    std::cin >> N;

    std::vector<int64_t> employees(N);

    for (int64_t i = 1; i < N; ++i) {
        int64_t A;
        std::cin >> A;
        employees.at(A-1)++;
    }

    for (auto employee : employees) {
        std::cout << employee << std::endl;
    }

    return 0;
}