#include<iostream>
using namespace std;
#define NUM 6
int main(){
    int n;
    cin >> n;
    int high[] = {165,170,175,180,185,200};
    int a[6] = {};
    for(int i = 0; i < n; i++){
        double h;
        cin >> h;
        for(int j = 0; j < NUM; j++)if(h < high[j]){
            a[j]++;
            break;
        }
    }
    for(int i = 0; i < NUM; i++){
        cout << i+1 << ":";
        for(int j = 0; j < a[i]; j++)cout << "*";
        cout << endl;
    }
}

