function Main(input){
    input = input.split("\n");
    var mem = input[0]-0;
    var arr = input[1].split(" ").map(Number);
    var ans = new Array(arr.length+2).fill(0);
    arr.forEach(function(val){
        ans[val]++;
    })
    ans.shift();
    console.log(ans.join("\n"));
}Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
