// inputに入力データ全体が入る
function Main(input) {
    var s = input[0]-0;
    var list = input[1].split(" ").map(v=>v-0);
    var map = {};
    list.forEach(v=>{
        map[v] = map[v]?map[v]+1:1;
    });
    for(var i=1;i<=s;i++){
        console.log(map[i]||0);
    }
}



Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n"));