let () =
  let n = read_int () in
  let x = Array.make 6 0 in
  for i = 0 to n-1 do
    let m = read_float () in
    if m < 165. then x.(0) <- x.(0)+1
    else if m >= 165. && m < 170. then x.(1) <- x.(1)+1
    else if m >= 170. && m < 175. then x.(2) <- x.(2)+1
    else if m >= 175. && m < 180. then x.(3) <- x.(3)+1
    else if m >= 180. && m < 185. then x.(4) <- x.(4)+1
    else if m >= 185. then x.(5) <- x.(5)+1
  done;
  let print n cnt =
    Printf.printf "%d:" n;
    for i = 0 to cnt-1 do
      Printf.printf "%c" '*'
    done;
    print_newline ()
  in
  Array.iteri (fun i x -> print (i+1) x) x
;;