#include <iostream>
using namespace std;
int main(void){
    int n; //生徒の数
    double h; //生徒の慎重

    int c1 = 0, c2 = 0, c3 = 0, c4 = 0, c5 = 0, c6 = 0;
    /*
      c1は165.0cm未満の生徒数
      c2は165.0cm以上170.0cm未満の生徒数
      c3は170.0cm以上175.0cm未満の生徒数
      c4は175.0cm以上180.0cm未満の生徒数
      c5は180.0cm以上185.0cm未満の生徒数
      c6は185.0cm以上の生徒数
    */

    cin >> n;
    for(int i = 1; i <= n; i++){
        cin >> h;

        if(h < 165.0) c1++;
        else if(165.0 <= h && h < 170.0) c2++;
        else if(170.0 <= h && h  < 175.0) c3++;
        else if(175.0 <= h && h  < 180.0) c4++;
        else if(180.0 <= h && h  < 185.0) c5++;
        else c6++;
    }

    cout << "1:";
    if(c1 > 0){
        for(int i = 1; i <= c1; i++)
            cout << '*';
    }
    cout << endl;

    cout << "2:";
    if(c2 > 0){
        for(int i = 1; i <= c2; i++)
            cout << '*';
    }
    cout << endl;

    cout << "3:";
    if(c3 > 0){
        for(int i = 1; i <= c3; i++)
            cout << '*';
    }
    cout << endl;

    cout << "4:";
    if(c4 > 0){
        for(int i = 1; i <= c4; i++)
            cout << '*';
    }
    cout << endl;

    cout << "5:";
    if(c5 > 0){
        for(int i = 1; i <= c5; i++)
            cout << '*';
    }
    cout << endl;

    cout << "6:";
    if(c6 > 0){
        for(int i = 1; i <= c6; i++)
            cout << '*';
    }
    cout << endl;
}
