#include<iostream>
using namespace std;
int main(void){
    double n,h,count1=0,count2=0,count3=0,count4=0,count5=0,count6=0;
    cin >> n;
    for(int a=0; a<n; a++){
        cin >> h;
        if(h<165.0)                 count1+=1;
        else if(165.0<=h&&h<170.0)  count2+=1;
        else if(170.0<=h&&h<175.0)  count3+=1;
        else if(175.0<=h&&h<180.0)  count4+=1;
        else if(180.0<=h&&h<185.0)  count5+=1;
        else if(185.0<=h)           count6+=1;
    }
    cout << "1:";
    for(int b=0; b<count1; b++){
        cout << "*";
    }
    cout << endl;
    cout << "2:";
    for(int c=0; c<count2; c++){
        cout << "*";
    }
    cout << endl;
    cout << "3:";
    for(int d=0; d<count3; d++){
        cout << "*";
    }
    cout << endl;
    cout << "4:";
    for(int e=0; e<count4; e++){
        cout << "*";
    }
    cout << endl;
    cout << "5:";
    for(int f=0; f<count5; f++){
        cout << "*";
    }
    cout << endl;
    cout << "6:";
    for(int g=0; g<count6; g++){
        cout << "*";
    }
    cout << endl;
}
