
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();
        int sub[] = new int[N];
        for (int i = 0; i < N-1; i++) {
            sub[scan.nextInt()-1]++;
        }

        for (int i = 0; i < N; i++)
            os.println(sub[i]);

    }
} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();
        int sub[] = new int[N];
        for (int i = 0; i < N-1; i++) {
            sub[scan.nextInt()-1]++;
        }

        for (int i = 0; i < N; i++)
            os.println(sub[i]);

    }
} Main public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    } main {
        solve(System.in, System.out);
    } solve(System.in, System.out) solve System.in System System.in System.out System System.out String[] args args static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();
        int sub[] = new int[N];
        for (int i = 0; i < N-1; i++) {
            sub[scan.nextInt()-1]++;
        }

        for (int i = 0; i < N; i++)
            os.println(sub[i]);

    } solve {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();
        int sub[] = new int[N];
        for (int i = 0; i < N-1; i++) {
            sub[scan.nextInt()-1]++;
        }

        for (int i = 0; i < N; i++)
            os.println(sub[i]);

    } Scanner scan = new Scanner(is); scan new Scanner(is) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int sub[] = new int[N]; sub new int[N] N for (int i = 0; i < N-1; i++) {
            sub[scan.nextInt()-1]++;
        } int i = 0; int i = 0; i 0 i < N-1 i N-1 N 1 i++ i++ i {
            sub[scan.nextInt()-1]++;
        } {
            sub[scan.nextInt()-1]++;
        } sub[scan.nextInt()-1]++ sub[scan.nextInt()-1] sub scan.nextInt()-1 scan.nextInt() scan.nextInt scan 1 for (int i = 0; i < N; i++)
            os.println(sub[i]); int i = 0; int i = 0; i 0 i < N i N i++ i++ i os.println(sub[i]); os.println(sub[i]) os.println os sub[i] sub i InputStream is is PrintStream os os public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();
        int sub[] = new int[N];
        for (int i = 0; i < N-1; i++) {
            sub[scan.nextInt()-1]++;
        }

        for (int i = 0; i < N; i++)
            os.println(sub[i]);

    }
} public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();
        int sub[] = new int[N];
        for (int i = 0; i < N-1; i++) {
            sub[scan.nextInt()-1]++;
        }

        for (int i = 0; i < N; i++)
            os.println(sub[i]);

    }
} Main

import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        solve(System.in, System.out);
    }

    static void solve(InputStream is, PrintStream os) {
        // Your code here!
        Scanner scan = new Scanner(is);
        int N = scan.nextInt();
        int sub[] = new int[N];
        for (int i = 0; i < N-1; i++) {
            sub[scan.nextInt()-1]++;
        }

        for (int i = 0; i < N; i++)
            os.println(sub[i]);

    }
}