#include<iostream>
#include<string.h>
#include<vector>
#include<list>
#include<stdio.h>
#include<math.h>
#include<iomanip>
#define range(i,a,b) for(int i = (a); i < (b); i++)
#define rep(i,b) range(i,0,b)
#define debug(x) cout << "debug " << x << endl;
using namespace std;

int main(){
    int n;
    double h;
    while(cin >> n){
        int ans[6] = {0};
        rep(i,n){
            cin >> h;
            if(h < 165)
                ans[0]++;
            else if(h >= 165 && h < 170)
                ans[1]++;
            else if(h >= 170 && h < 175)
                ans[2]++;
            else if(h >= 175 && h < 180)
                ans[3]++;
            else if(h >= 180 && h < 185)
                ans[4]++;
            else if(h >= 185)
                ans[5]++;
        }
        rep(i,6){
            cout << i + 1 << ":";
            rep(j,ans[i]){
                cout << '*';
            }
            cout << endl;
        }
    }
}