freq = Array.new(6, 0)
n = gets.to_i
n.times{
    height = gets.to_f
    case height
    when 165.0 ... 170.0 then freq[1] += 1
    when 170.0 ... 175.0 then freq[2] += 1
    when 175.0 ... 180.0 then freq[3] += 1
    when 180.0 ... 185.0 then freq[4] += 1
    else
        freq[0] += 1 if height < 165.0
        freq[5] += 1 if height > 185.0
    end
}
freq.each_with_index{|f, i| puts "#{i + 1}:#{"*" * f}"}