#include<iostream>
#include<cstdio>
using namespace std;

#define rep(i, n)for((i) = 0;(i) < (n);++(i))

string res[6] = {"1:", "2:", "3:", "4:", "5:", "6:"};

int main(void){
	int i, j, n;
	double h;
	scanf("%d", &n);
	for(;n--;){
		scanf("%lf", &h);
		rep(i, 5)if(h < 165.0 + (double)i * 5.0){
			res[i] += "*";
			break;
		}
		if(i == 5)res[5] += "*";
	}
	rep(i, 6)cout << res[i] << endl;
}