#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<cstring>
using namespace std;

#define rep(i,n) for(int i=0;i<n;i++)
#define REP(n) rep(i,n)
#define all(n) n.begin(),n.end()

const int MAX = 6;

int d[MAX];

int main()
{
    int n;
    cin >> n;
    double h;
    REP(n) 
    {
        cin >> h;
        if(h<165.0) {d[0]++; continue;}
        if(h<170) {d[1]++; continue;}
        if(h<175) {d[2]++; continue;}
        if(h<180) {d[3]++; continue;}
        if(h<185) {d[4]++; continue;}
        d[5]++;
    }

    REP(MAX)
    {
        cout << i+1 << ":";
        rep(j,d[i]) cout << "*";

        cout << endl;
    }
    return 0;
}