#include <iostream>

int main()
{
	int freq[6] = {0,0,0,0,0,0};
	int n; std::cin >> n;
	for (int i=0; i<n; i++) {
		float height;
		std::cin >> height;
		if (height < 165.0) freq[0]++;
		else if (height < 170.0) freq[1]++;
		else if (height < 175.0) freq[2]++;
		else if (height < 180.0) freq[3]++;
		else if (height < 185.0) freq[4]++;
		else freq[5]++;
	}
	for (int i=0; i<6; i++) {
		std::cout << i+1 << ":";
		for (int j=0; j<freq[i]; j++) std::cout << "*";
		std::cout << std::endl;
	}
	
	return 0;
}


