#include<iostream>
using namespace std;

int main() {
	int l[6] = { 0,0,0,0,0,0 };
	double f;
	int length;
	cin >> length;
	for (int i = 0; i < length; i++) {
		cin >> f;
		if (f < 165.0) {
			l[0] += 1;
		}
		else if (f < 170.0) {
			l[1] += 1;
		}
		else if (f < 175.0) {
			l[2] += 1;
		}
		else if (f < 180.0) {
			l[3] += 1;
		}
		else if (f < 185.0) {
			l[4] += 1;
		}
		else l[5] += 1;
	}
	for (int i = 0; i < 6; i++){
		cout << i+1 << ":";
		for (int j = 0; j < l[i]; j++){
			cout << "*";
		}
		cout << endl;
	}
	
}