#include <iostream>
using namespace std;

int main(){
	int n;
	double a;
	while(cin >> n && n){
		int count[6] = {};
		for(int i=0;i<n;i++){
			cin >> a;
			if(a>=185.0) count[5]++;
			else if(a>=180.0) count[4]++;
			else if(a>=175.0) count[3]++;
			else if(a>=170.0) count[2]++;
			else if(a>=165.0) count[1]++;
			else count[0]++;
		}
		for(int i=0;i<6;i++){
			cout << i+1 << ':' ;
			if(count[i] != 0){
				for(int j=0;j<count[i];j++){
					cout << '*';
				}
			}
			cout << '\n' ;
		}
	}
	return 0;
}