#include <cstdio>

using namespace std;

int distr[7];

int main()
{
    int n;
    scanf( "%d\n", &n );
    for( int i = 0; i < n; i++ )
    {
        float a;
        scanf( "%f\n", &a );
        if( a < 165.0 )
        {
            distr[1]++;
        }
        else if( a < 170.0 )
        {
            distr[2]++;
        }
        else if( a < 175.0 )
        {
            distr[3]++;
        }
        else if( a < 180.0 )
        {
            distr[4]++;
        }
        else if( a < 185.0 )
        {
            distr[5]++;
        }
        else
        {
            distr[6]++;
        }
    }
    for( int i = 1; i <= 6; i++ )
    {
        printf( "%d:", i );
        while( 0 < distr[i] )
        {
            printf( "%c", '*');
            distr[i]--;
        }
        printf( "\n" );
    }
    return 0;
}
