#include<iostream>
using namespace std;
int main()
{
	int n;
	double p;
	int a[6] = { 0 };
	cin >> n;
	for (int i = 0; i < n; i++){
		cin >> p;
		if (p < 165.0)a[0]++;
		else if (p < 170.0)a[1]++;
		else if (p < 175.0)a[2]++;
		else if (p < 180.0)a[3]++;
		else if (p < 185.0)a[4]++;
		else a[5]++;
	}
	for (int i = 1; i < 7; i++){
		cout << i << ":";
		for (int i2 = 0; i2 < a[i-1]; i2++){
			cout << "*";
		}
		cout << endl;
	}
}