#include <bits/stdc++.h>
using namespace std;
int main(void){
    int n,count1,count2,count3,count4,count5,count6;
    count1=0;
    count2=0;
    count3=0;
    count4=0;
    count5=0;
    count6=0;
    double h;
    cin>>n;
    for (int i=0;i<n;i++) {
        cin>>h;
        if (h<165.0) {
            count1++;
        } else if (165.0 <= h && 170.0 > h) {
            count2++;
        } else if (170.0 <= h &&175.0 > h) {
            count3++;
        } else if (175.0 <= h && 180.0 > h) {
            count4++;
        } else if (180.0 <= h && 185.0 > h) {
            count5++;
        } else if (185.0 <= h) {
            count6++;
        }
    }
    cout<<"1:";
    for (int k=0;k<count1;k++) {
            cout<<"*";
    }
    cout<<endl;
    cout<<"2:";
    for (int l=0;l<count2;l++) {
            cout<<"*";
    }
    cout<<endl;
    cout<<"3:";
    for (int m=0;m<count3;m++) {
            cout<<"*";
    }
    cout<<endl;
    cout<<"4:";
    for (int o=0;o<count4;o++) {
            cout<<"*";
    }
    cout<<endl;
    cout<<"5:";
    for (int p=0;p<count5;p++) {
            cout<<"*";
    }
    cout<<endl;
    cout<<"6:";
    for (int q=0;q<count6;q++) {
            cout<<"*";
    }
    cout<<endl;
}

