program ABC163_C
  integer,allocatable::A(:),B(:)
  read(*,*)N
  allocate(A(2:N),B(N))
  B=0
  read(*,*)A
  do i=2,N
     B(A(i))=B(A(i))+1
  end do
  do i=1,N
     write(*,*)B(i)
  end do
end program ABC163_C