num = gets.to_i ; line = [0,0,0,0,0,0]
list = Array.new(num)
num.times do |i|
	list[i] = gets.to_i
	if list[i]<165.0
		line[0]+=1
	elsif list[i]<170.0
		line[1] += 1
	elsif list [i]<175.0
		line[2] += 1
	elsif list [i]<180.0
		line[3] += 1
	elsif list [i]<185.0
		line[4] += 1
	else 
		line[5] +=1
	end
end
6.times do |i|
	print i+1 , ":"
	line[i].times do 
		print "*"
	end
	print "\n"
end