#include<iostream>
using namespace std;
int main(){
  int n,a1=0,a2=0,a3=0,a4=0,a5=0,a6=0;
  double high[100];
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> high[i];
    if(high[i]<165.0){
      a1++;
    }
    else if(high[i]<170.0){
      a2++;
    }
    else if(high[i]<175.0){
      a3++;
    }
    else if(high[i]<180.0){
      a4++;
    }
    else if(high[i]<185.0){
      a5++;
    }
    else{
      a6++;
    }
  }
  cout << "1:";
  for(int i=0;i<a1;i++){
    cout << "*";
  }
  cout << endl;

  cout << "2:";
  for(int i=0;i<a2;i++){
    cout << "*";
  }
  cout << endl;

  cout << "3:";
  for(int i=0;i<a3;i++){
    cout << "*";
  }
  cout << endl;

  cout << "4:";
  for(int i=0;i<a4;i++){
    cout << "*";
  }
  cout << endl;

  cout << "5:";
  for(int i=0;i<a5;i++){
    cout << "*";
  }
  cout << endl;

  cout << "6:";
  for(int i=0;i<a6;i++){
    cout << "*";
  }
  cout << endl;
  return (0);
}