#include <iostream>
using namespace std;

int main ()
{
    int n;
    cin >> n;
    double a[5] = {165.0, 170.0, 175.0, 180.0, 185.0};
    string res[6];

    for (int i = 0; i < n; i++) {
        double num;
        cin >> num;
        for (int j = 0; j < 6; j++) {
            if (j < 5 && a[j] > num) {
                res[j] += '*';
                break;
            }  else if(j == 5) {
                res[5] += '*';
            }
        }
    }

    for (int i = 0; i < 6; i++) {
        cout << i+1 <<':' << res[i] << endl;
    }

    return 0;
}