#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <iomanip>
#include <map>
#include <fstream>
#include <sstream>
#include <math.h>
#include <queue>
#include <stack>
#include <math.h>
#include <string.h>


using namespace std;


int main(){
    int n;
    cin>>n;
    string h[6];
    for(int i=0; i<n; i++){
        double hight;
        cin>>hight;
        if(hight<165.0)h[0]+='*';
        else if(hight<170.0)h[1]+='*';
        else if(hight<175.0)h[2]+='*';
        else if(hight<180.0)h[3]+='*';
        else if(hight<185.0)h[4]+='*';
        else h[5]+='*';
        
    }
    
    for(int i=0; i<6; i++){
        cout<<i+1<<":" <<h[i]<<endl;
    }
}