#include <iostream>
using namespace std;

int main(){
	int n;

	cin >> n ;
	int f[6] = {};
	for(int i=0 ; i<n ; ++i ){
		double a;
		cin >> a;
		if( a < 165.0 )
			f[0]++;
		else if( a < 170.0 )
			f[1]++;
		else if( a < 175.0 )
			f[2]++;
		else if( a < 180.0 )
			f[3]++;
		else if( a < 185.0 )
			f[4]++;
		else
			f[5]++;
	}
	for(int i=0 ; i<6 ; ++i ){
		cout << i+1 << ":";
		for(int j=0 ; j<f[i] ; ++j){
			cout << "*";
		}
		cout << endl;
	}
}