let () =
  let rec read () =
    let n = read_int () in
    if n = 0 then ()
    else
      begin
        let x = Array.make 7 0 in
        for i = 0 to n-1 do
          let m = read_int () in
          if m < 10 then x.(0) <- x.(0)+1
          else if m >= 10 && m < 20 then x.(1) <- x.(1)+1
          else if m >= 20 && m < 30 then x.(2) <- x.(2)+1
          else if m >= 30 && m < 40 then x.(3) <- x.(3)+1
          else if m >= 40 && m < 50 then x.(4) <- x.(4)+1
          else if m >= 50 && m < 60 then x.(5) <- x.(5)+1
          else if m >= 60 then x.(6) <- x.(6)+1
        done;
        Array.iter (fun t -> Printf.printf "%d\n" t) x;
        read ()
      end
  in read ()
;;