#include<iostream>
using namespace std;
int n, w[7], b;
double a;
int main() {
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> a;
		b = (a - 155.0) / 5;
		if (b < 1) { b = 1; }
		if (b > 6) { b = 6; }
		w[b]++;
	}
	for (int i = 1; i <= 6; i++) {
		cout << i << ':';
		for (int j = 0; j < w[i]; j++) {
			cout << '*';
		}
		cout << endl;
	}
	return 0;
}