class TCastle
  def solve
    while true
      n    = gets.chomp.to_i
      return if n == 0
      cnt = Array.new (7) {0}
      n.times do
        x = gets.chomp.to_i
        case x
        when 0..9
          cnt[0] += 1
        when 10..19
          cnt[1] += 1
        when 20..29
          cnt[2] += 1
        when 30..39
          cnt[3] += 1
        when 40..49
          cnt[4] += 1
        when 50..59
          cnt[5] += 1
        else
          cnt[6] += 1
        end
      end
      cnt.map{|i| puts i}
    end
  end
end

if $0 == __FILE__
  TCastle.new.solve
end