arr = Array.new(6, "")

gets.to_i.times do
  case gets.to_f
  when 0...165
    arr[0] += "*"
  when 165...170
    arr[1] += "*"
  when 170...175
    arr[2] += "*"
  when 175...180
    arr[3] += "*"
  when 180...185
    arr[4] += "*"
  else
    arr[5] += "*"
  end
end

6.times do |i|
 puts "#{i + 1}:#{arr[i]}" 
end