#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
#include<vector>
#define INF 999999
using namespace std;
int main(){
    int tall[15]={0},N;
    double t;
    cin>>N;
    while(N--){
        cin>>t;
        if(t<165)tall[1]++;
        if(165<=t&&t<170)tall[2]++;
        if(170<=t&&t<175)tall[3]++;
        if(175<=t&&t<180)tall[4]++;
        if(180<=t&&t<185)tall[5]++;
        if(185<=t)tall[6]++;
    }
    for(int i=1;i<7;i++){
        cout<<i<<":";
        while(tall[i]--){
            cout<<"*";
        }
        puts("");
    }
    return 0;
}