first = "1:"
second = "2:"
third = "3:"
fourth = "4:"
fifth = "5:"
sixth = "6:"

n = gets.to_i
n.times do
  height = gets.to_f
  if height < 165.0
  	first += "*"
  elsif height < 170.0
  	second += "*"
  elsif height < 175.0
  	third += "*"
  elsif height < 180.0
  	fourth += "*"
  elsif height < 185.0
  	fifth += "*"
  else
  	sixth += "*"
  end
end

puts first, second, third, fourth, fifth, sixth