#include <iostream>

int main() {
	int stu = 0;
	double p[40] = {};
	char dosu[6][40];

	std::cin >> stu;

	for (int i = 0; i < stu; i++) {
		std::cin >> p[i];
		if (p[i] < 165.0) {
			dosu[0][i] = '*';
		
		}
		else if (p[i] < 170.0) {
			dosu[1][i] = '*';
			
		}
		else if (p[i] < 175.0) {
			dosu[2][i] = '*';
			
		}
		else if (p[i] < 180.0) {
			dosu[3][i] = '*';
			
		}
		else if (p[i] < 185.0) {
			dosu[4][i] = '*';
		
		}
		else {
			dosu[5][i] = '*';
		}
		

	}

	std::cout << "1:";
	for (int j1 = 0; j1 < 40; j1++) {

		if (dosu[0][j1] == '*') {
			std::cout << dosu[0][j1];
		}
	}
	std::cout << std::endl;
	std::cout << "2:";
	for (int j2 = 0; j2 < 40; j2++) {
		if (dosu[1][j2] == '*') {
			std::cout << dosu[1][j2];
		}
	}
	std::cout << std::endl;
	std::cout << "3:";
	for (int j3 = 0; j3 < 40; j3++) {
		if (dosu[2][j3] == '*') {
			std::cout << dosu[2][j3];
		}
	}
	std::cout << std::endl;
	std::cout << "4:";
	for (int j4 = 0; j4 < 40; j4++) {
		if (dosu[3][j4] == '*') {
			std::cout << dosu[3][j4];
		}
	}
	std::cout << std::endl;
	std::cout << "5:";
	for (int j5 = 0; j5 < 40; j5++) {
		if (dosu[4][j5] == '*') {
			std::cout << dosu[4][j5];
		}
	}
	std::cout << std::endl;
	std::cout << "6:";
	for (int j6 = 0; j6 < 40; j6++) {
		if (dosu[5][j6] == '*') {
			std::cout << dosu[5][j6];
		}
	}
	std::cout << std::endl;
}
