n = gets.to_i
a = Array.new(7,0)
n.times do
  x = gets.to_f
  if x<165.0
    a[1] = a[1] + 1
  elsif x<170.0
    a[2] = a[2] + 1 
  elsif x<175.0
    a[3] = a[3] + 1
  elsif x<180.0
    a[4] = a[4] + 1
  elsif x<185.0
    a[5] = a[5] + 1
  else
    a[6] = a[6] + 1
  end
end
for i in 1..6
  print(i,":","*"*a[i],"\n")
end
