let n1 = Int(readLine()!)!
    
    let n2 = readLine()!.split(separator: " ").compactMap{Int($0)}
    
    var dict = [Int : Int]()
    
    for i in 1 ... n1 {
      
      dict[i] = 0
    }
    
    for j in n2 {
      
      if dict.keys.contains(j) {
        
        dict[j] = dict[j]! + 1
        
      }
    }
    
    for n in dict.keys.sorted(by: {$0 < $1}) {
      print(dict[n]!)
      }