if true then
  fh = STDIN
else
  fh=open("in1_0136.txt")
end
f=[]
n=fh.gets.chomp.to_i
0.upto(n-1){|i|
  f.push(fh.gets.chomp.to_f)
}

hlimit=[165.0, 170.0, 175.0, 180.0, 185.0, 999999.9]
hist=Array.new(6,0)
0.upto(n-1){|i|
  0.upto(hist.length-1){|j|
    if f[i] < hlimit[j] then
      hist[j] += 1
      break
    end
  }
}
0.upto(hist.length-1){|j|
  printf("%d:%s\n", j+1, "*" * hist[j])
}

fh.close