#include <iostream>
using namespace std;
#define rep2(x,from,to) for(int x=(from);x<(to);++(x))
#define rep(x,to) rep2(x,0,to)

int main() {
	int n, c[7] = {};
	double h;
	cin >> n;
	rep(i,n) {
		cin >> h;
		int a = h<165.0?0:(h-165.0)/5+1;
		c[a]++;
	}
	rep(i,6) {
		cout << i+1 << ":";
		rep(j,c[i]) {
			cout << "*";
		}
		cout << endl;
	}
	return 0;
}