function Main(input) {
    var tmp = input.split("\n");
    var N = parseInt(tmp[0],10);
    var A = tmp[1].split(" ");

    for(var i=1;i<=N;i++){
        var ansj=0;
        for(var j=i;j<=N;j++){
            if(i==A[j-1]){ansj++}
        }
        console.log(ansj);
    }

 


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