a , b , c , d , e , f = 0 , 0 , 0 , 0 , 0 , 0  
num = gets.to_i
for i in 1..num
	height = gets.to_i
	if height < 165.0
		a = a + 1
	elsif 165.0 <= height && height < 170.0
		b = b + 1
	elsif 170.0 <= height && height < 175.0
		c = c + 1
	elsif 175.0 <= height && height < 180.0
		d = d + 1
	elsif 180.0 <= height && height < 185.0
		e = e + 1
	elsif 185.0 <= height
		f = f + 1
	end
end
puts "1:" + "*" * a
puts "2:" + "*" * b
puts "3:" + "*" * c
puts "4:" + "*" * d
puts "5:" + "*" * e
puts "6:" + "*" * f