#include<iostream>
#include<cstdio>
using namespace std;

int main(){
  int n,i,j,c1,c2,c3,c4,c5,c6;
  double h;

  while(cin >> n){
    c1=0;
    c2=0;
    c3=0;
    c4=0;
    c5=0;
    c6=0;

    for(i=0;i<n;i++){
      cin >> h;
      if(h<165.0)c1++;
      else if(h>=165.0 && 170.0>h)c2++;
      else if(h>=170.0 && 175.0>h)c3++;
      else if(h>=175.0 && 180.0>h)c4++;
      else if(h>=180.0 && 185.0>h)c5++;
      else if(h>=185.0)c6++;
    }

    printf("1:");
    for(i=0;i<c1;i++)printf("*");
    cout << endl;
 printf("2:");
    for(i=0;i<c2;i++)printf("*");
    cout << endl;
 printf("3:");
    for(i=0;i<c3;i++)printf("*");
    cout << endl;
 printf("4:");
    for(i=0;i<c4;i++)printf("*");
    cout << endl;
 printf("5:");
    for(i=0;i<c5;i++)printf("*");
    cout << endl;
 printf("6:");
    for(i=0;i<c6;i++)printf("*");
    cout << endl;




  }
}