"use strict";

const main = (input) => {
    const spi = input.split('\n');
    const n = Number(spi[0]);
    const a = spi[1].split(' ').map(e => Number(e));

    const array = new Array(n).fill(0);
    for (let i = 0; i < n; i++) {
        array[a[i] - 1]++;
    }

    for (let i = 0; i < n; i++) {
        console.log(array[i]);
    }
};

main(require("fs").readFileSync("/dev/stdin", "utf8"));
