use proconio::input;
use std::collections::HashMap;

fn main() {
    input! {
        mut n: usize,
        a: [u64; n-1],
    }

    let mut res = HashMap::new();
    for aa in a {
        let count = res.entry(aa).or_insert(0);
        *count += 1;
    }

    for nn in 1..=n as u64 {
        println!("{}", res.entry(nn).or_default());
    }
}
