program ABC163C
    implicit none
    integer(8)::N,i
    integer(8),allocatable,dimension(:)::A,Ans
    read*,N
    allocate(A(N-1))
    allocate(Ans(N))
    read*,A
    Ans=0

    do i=1,N-1
        Ans(A(i))=Ans(A(i))+1
    end do

    do i=1,N
        print'(i0)',Ans(i)
    end do
end program ABC163C