#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stack>
#include <queue>
#include <deque>
#include <set>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <numeric>
#include <cmath>
#include <climits>
#include <limits>
#include <cfloat>
#include <fstream>
using namespace std;

int main()
{
	const double hight[] = { 0.0, 165.0, 170.0, 175.0, 180.0, 185.0, DBL_MAX };
//	cut here before submit 
//	freopen("testcase.hist", "r", stdin);
	string str = "";
	int n;

	getline (cin, str );
	stringstream ssn(str);
	ssn >> n;

	vector <int> hist (sizeof(hight)/sizeof(hight[0]) - 1, 0);
	int i,j;

	for (i = 0; i < n; ++i){

		getline (cin, str );
		double h;

		stringstream ss(str);
		ss >> h;

		for (j = 0; j < hist.size(); ++j){
			if (h >= hight[j] && h < hight[j+1] ){
				++hist[j];		
			} // end if
		} // end for

	} // end loop

	for (i = 0; i < hist.size(); ++i){
		cout << (i+1) << ':';
		for (j = 0; j < hist[i]; ++j){
			cout << '*';
		} // end for
		cout << endl;
	} // end for
		
	return 0;
}