#include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    int heights[6] = {};
    for (int i = 0; i < n; i++) {
        double height;
        cin >> height;
        if (height < 165) {
            heights[0]++;
        } else if (height < 170) {
            heights[1]++;
        } else if (height < 175) {
            heights[2]++;
        } else if (height < 180) {
            heights[3]++;
        } else if (height < 185) {
            heights[4]++;
        } else {
            heights[5]++;
        }
    }
    for (int i = 0; i < 6; i++) {
        cout << i + 1 << ":";
        for (int j = 0; j < heights[i]; j++) {
            cout << "*";
        }
        cout << endl;
    }
}