
#include <iostream>
#include<vector>
#include<algorithm>
#include<string>
using namespace std;
int main() {
    int a[6]={0},n;
    double h;
    cin>>n;
    for(int i=0;i<n;i++){
        cin>>h;
        if(h<165.0)a[0]++;
        else if(h<170.0)a[1]++;
        else if(h<175.0)a[2]++;
        else if(h<180.0)a[3]++;
        else if(h<185.0)a[4]++;
        else a[5]++;
    }
    for(int i=0;i<6;i++){
        cout<<i+1<<":";
        for(int j=1;j<=a[i];j++){
            cout<<"*";
        }
        cout<<endl;
    }
    return 0;
}

