#include<iostream>
using namespace std;

int main() {
	int n; int rank[6] = { 0,0,0,0,0,0 };
	double tmp;
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> tmp;
		if (tmp < 165.)rank[0]++;
		else if (tmp >= 165.&&tmp < 170.)rank[1]++;
		else if (tmp >= 170.&&tmp < 175.)rank[2]++;
		else if (tmp >= 175.&&tmp < 180.)rank[3]++;
		else if (tmp >= 180.&&tmp < 185.)rank[4]++;
		else if (tmp >= 185.)rank[5]++;
	}

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