while n = gets.to_i
  break if n==0
  a = Array.new(7,0)
  n.times do
    x = gets.to_i
    if x<10
      a[0]+=1
    elsif x<20
      a[1]+=1
    elsif x<30
      a[2]+=1
    elsif x<40
      a[3]+=1
    elsif x<50
      a[4]+=1
    elsif x<60
      a[5]+=1
    else
      a[6]+=1
    end
  end
  for i in 0..6
    puts a[i]
  end
end
