#include <iostream>

using namespace std;

int main()
{
    int n, fd[6];
    double h;

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

    cin >> n;
    while (n--) {
        cin >> h;
        if (h >= 185)
            fd[5]++;
        else if (h >= 180)
            fd[4]++;
        else if (h >= 175)
            fd[3]++;
        else if (h >= 170)
            fd[2]++;
        else if (h >= 165)
            fd[1]++;
        else
            fd[0]++;
    }

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

    return 0;
}