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

#define for_(i,a,b) for(int i=(a);i<(b);++i)

int main() {
	int n, cnt[6] = {0};
	double mn = 160;
	
	cin >> n;
	
	for_(i,0,n) {
		double c;
		cin >> c;
		int p = min(5, int((c - mn) / 5.));
		++cnt[p];
	}
	
	for_(i,0,6) {
		cout << i + 1 << ":";
		for_(j,0,cnt[i]) cout << "*";
		cout << endl;
	}
}