#include<iostream>
using namespace std;

int main()
{
    int n, level[6];
    double d;

    for( int i = 0; i < 6; i++ )
        level[i] = 0;

    cin >> n;

    for( int i = 0; i < n; i++ )
    {
        cin >> d;
        if( d < 165 )
            level[0]++;
        else if( d < 170 )
            level[1]++;
        else if( d < 175 )
            level[2]++;
        else if( d < 180 )
            level[3]++;
        else if( d < 185 )
            level[4]++;
        else
            level[5]++;
    }

    for( int i = 0; i < 6; i++ )
    {
        cout << i + 1 << ":";
        for( int j = 0; j < level[i]; j++ )
            cout << '*';
        cout << endl;
    }
    return 0;
}
