#include <iostream>
#include <string.h>
using namespace std;

int main()
{
	int n;
	int freq[ 7 ];

	while( cin >> n ){
		memset( freq, 0, sizeof(freq) );
		for( int i = 0; i < n; ++i ){
			double height;
			cin >> height;
			int f = static_cast<int>( height - 155 ) / 5;
			if( f < 1 ){
				f = 1;
			}else if( f > 6 ){
				f = 6;
			}
			freq[ f ]++;
		}

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

	return 0;
}