#include <iostream>

using namespace std;

int main(){

	int i, n;
	double high;
	int num[6];

	 memset(num, 0, sizeof(num));

	cin >> n;

	for(i = 0; i < n; i++){
		cin >> high;

		if(high < 165.0){
			num[0]++;
		}

		else if(high >= 165.0 && high < 170.0){
			num[1]++;
		}

		else if(high >= 170.0 && high < 175.0){
			num[2]++;
		}

		else if(high >= 175.0 && high < 180.0){
			num[3]++;
		}

		else if(high >= 180.0 && high < 185.0){
			num[4]++;
		}

		else{
			num[5]++;
		}
	}

	cout << "1:";
		for(i = 0; i < num[0]; i++){
			cout << "*";
		}
		cout << endl;

		cout << "2:";
		for(i = 0; i < num[1]; i++){
			cout << "*";
		}
		cout << endl;

		cout << "3:";
		for(i = 0; i < num[2]; i++){
			cout << "*";
		}
		cout << endl;

		cout << "4:";
		for(i = 0; i < num[3]; i++){
			cout << "*";
		}

		cout << "5";
		for(i = 0; i < num[4]; i++){
			cout << "*";
		}
		cout << endl;

		cout << "6:";
		for(i = 0; i < num[5]; i++){
			cout << "*";
		}
		cout << endl;

		
		return 0;
}