#include <iostream>
#include <cstring>
using namespace std;

#define repeat(n, i) for(int i=0; i < (n); i++) 

int main() {
    int n;
    cin >> n;
    double h[n];
    repeat(n, i) {
        cin >> h[i];
    }
    int count[6];
    memset(count, 0, sizeof(count));
    repeat(n, i) {
        if (h[i] < 165.0) {
            count[0]++;
        } else if (165.0 <= h[i] && h[i] < 170.0) {
            count[1]++;
        } else if (170.0 <= h[i] && h[i] < 175.0) {
            count[2]++;
        } else if (175.0 <= h[i] && h[i] < 180.0) {
            count[3]++;
        } else if (180.0 <= h[i] && h[i] < 185.0) {
            count[4]++;
        } else {
            count[5]++;
        }
    }
    repeat(6, i) {
        cout << i+1 << ":";
        repeat(count[i], j) {
            cout << "*";
        }
        cout << endl;
    }
    return 0;
}
        