#include<iostream>

using namespace std;

int main(){

  int ninzu,i,j;
  double height;
  int gragh[6]={};


  cin >> ninzu;
  
  for(i=0;i<ninzu;i++){
    cin >> height;
    if(height<165.0)
      gragh[0]++;
    else{
      for(j=0;j<4;j++){
	if(165.0+j*5.0 <= height  &&  height < 170.0+j*5.0){
	  gragh[j+1]++;
	}
      }
    }
    if(height>=185.0)
      gragh[5]++;
  }

  for(i=0;i<6;i++){
    cout << i+1 << ":";
    for(j=0;j<gragh[i];j++){
      cout << "*";
    }
    cout << endl;
  }
}
	
    