#include <iostream>

using namespace std;

int main(int argc, char const* argv[])
{
	double input;
	int answer[6];
	int n;

	for( int i = 0;i < 6;i++ ) answer[i] = 0;

	cin >> n;

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

		if( input < 165.0 ) answer[0]++;
		else if( input >= 165.0 && input < 170.0 ) answer[1]++;
		else if( input >= 170.0 && input < 175.0 ) answer[2]++;
		else if( input >= 175.0 && input < 180.0 ) answer[3]++;
		else if( input >= 180.0 && input < 185.0 ) answer[4]++;
		else if( input >= 185.0 ) answer[5]++;
	}

	for( int i = 0;i < 6;i++ ){
		cout << i + 1 << ":";
		for( int j = 0;j < answer[i];j++ ) cout << "*";
		cout << endl;
	}
	
	return 0;
}