#include "bits/stdc++.h"
using namespace std;

int main() {
	int n, h[6] = { 0 };
	float temp;
	cin >> n;

	for (int i = 0; i < n; i++) {
		cin >> temp;

		if (temp < 165.0)
			h[0]++;
		else if (temp < 170.0)
			h[1]++;
		else if (temp < 175.0)
			h[2]++;
		else if (temp < 180.0)
			h[3]++;
		else if (temp < 185.0)
			h[4]++;
		else
			h[5]++;
	}

	for (int i = 0; i < 6; i++) {
		cout << i + 1 << ":";
		for (int j = 0; j < h[i]; j++)
			cout << "*";
		cout << endl;
	}

	return 0;
}