#include <iostream>

using namespace std;

int main(){

	double ary[41];
	double n;
	int n1 = 0,n2 = 0,n3 = 0,n4 = 0,n5 = 0,n6 = 0;

	cin >> n;

	for(int i = 0; i < n; i ++){
		cin >> ary[i];

		if(ary[i] < 165){
			n1++;
		}else if(ary[i] >= 165 && ary[i] < 170){
			n2++;
		}else if(ary[i] >= 170 && ary[i] < 175){
			n3++;
		}else if(ary[i] >= 175 && ary[i] < 180){
			n4++;
		}else if(ary[i] >= 180 && ary[i] < 185){
			n5++;
		}else if(ary[i] >= 185){
			n6++;
		}
	}

	cout << "1:";
	for(int i = 1; i <= n1; i++){
		cout << "*" ;
	}
	cout << endl;

	cout << "2:";
	for(int i = 1; i <= n2; i++){
		cout << "*";
	}
	cout << endl;

	cout << "3:";
	for(int i = 1; i <= n3; i++){
		cout << "*";
	}
	cout << endl;

	cout << "4:";
	for(int i = 1; i <= n4; i++){
		cout << "*";
	}
	cout << endl;

	cout << "5:";
	for(int i = 1; i <= n5; i++){
		cout <<"*";
	}
	cout << endl;

	cout << "6:";
	for(int i = 1; i <= n6; i++){
		cout << "*";
	}
	cout << endl;

	return 0;
}