program abc163c
  implicit none
  integer :: n
  integer,allocatable :: a(:), ans(:)
  read *, n
  allocate(a(n-1))
  allocate(ans(n))
  ans = 0
  read *, a
  ans(a) = ans(a) + 1
  print *, ans
end program abc163c
