#include <iostream>
#include <string>
#include <vector>
using namespace std;

string rep(string s, int n) {
    string ret = "";
    for (int i=0; i<n; ++i) {
        ret += s;
    }
    return ret;
}

int main() {
    vector<int> dis(6, 0);
    int n;
    cin >> n;
    double h;
    for (int i=0; i<n; ++i) {
        cin >> h;
        if (h < 165) {
            dis[0] ++;
        } else if (h < 170) {
            dis[1] ++;
        } else if (h < 175) {
            dis[2] ++;
        } else if (h < 180) {
            dis[3] ++;
        } else if (h < 185) {
            dis[4] ++;
        } else {
            dis[5] ++;
        }
    }
    for (int i=0; i<(int)dis.size(); ++i) {
        cout << (i+1) << ":" << rep("*", dis[i]) << endl;
    }
    return 0;
}