#include <bits/stdc++.h>

using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)

int main() {
	int n, cnt[6] = {};
	cin >> n;
	REP(i, n) {
		double h;
		scanf("%lf", &h);
		h = (h - 165.0) / 5.0;
		if (h < 0.0) cnt[0]++;
		else {
			if ((int)h >= 4) cnt[5]++;
			else cnt[(int)h + 1]++;
		}
	}
	
	REP(i, 6) {
		printf("%d:", i + 1);
		REP(j, cnt[i]) printf("*");
		cout << endl;
	}
	
	return 0;
}