 let n1 = Int(readLine()!)!
    
    let n2 = readLine()!.split(separator: " ").map({$0})
    
    var r: Int = 0
    
    var arr = Array(repeating: 0, count: n1)
    arr.removeAll()
    for i in 1 ... n1 {
      
      for j in 0 ..< n2.count {
        
        if i == Int(n2[j]) {
          r += 1
        }
        
      }
      arr.append(r)
      r = 0
    }
    
    for k in 0 ..< arr.count {
      print(arr[k])
    }
    