#include <iostream>
#include <string>
#include <cmath>
using namespace std;

int checkHeight(double h);

int main()
{
    int n;
    int count[6] = {};
    cin >> n;

    for(int i = 0; i < n; i++)
    {
        double height;
        cin >> height;
        count[checkHeight(height)]++;
    }
    for(int i = 0; i < 6; i++)
    {
        cout << i + 1 << ":";
        for(int j = 0; j < count[i]; j++)
        {
            cout << "*";
        }
        cout << endl;
    }
    return 0;
}

int checkHeight(double h)
{
    int ret_value = 0;
    if(isless(h, 165.0))
    {
        ret_value = 0;
    }
    else if(isless(h, 170.0))
    {
        ret_value = 1;
    }
    else if(isless(h, 175.0))
    {
        ret_value = 2;
    }
    else if(isless(h, 180.0))
    {
        ret_value = 3;
    }
    else if(isless(h, 185.0))
    {
        ret_value = 4;
    }
    else
    {
        ret_value = 5;
    }
    return ret_value;
}

