n = gets.chomp.to_i
hash = {"1:" => 0,"2:" => 0, "3:" => 0,"4:" => 0,"5:" => 0,"6:" => 0 }
n.times do
  h = gets.chomp.to_f
  if h < 165.0
    hash["1:"] += 1
    elsif h >= 165.0 && h < 170.0
    hash["2:"] += 1
    elsif h >= 170 && h < 175.0
    hash["3:"] += 1
    elsif h >= 175.0 && h < 180.0
    hash["4:"] += 1
    elsif h >= 180.0 && h < 185.0
    hash["5:"] += 1
    elsif h >= 185.0
    hash["6:"] += 1
  end
end

hash.each do |k,v|
puts "#{k}#{"*" * v}"
end
