data = Array.new(6,0)
gets.to_i.times do
  height = gets.to_f
  index = ((height-160)/5).to_i
  if index <= 0
    data[0] += 1
  elsif 5 <= index
    data[5] += 1
  else
    data[index] += 1
  end
end
data.each_with_index{ |d,i| puts "#{i+1}:"+"*"*d }