#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cstring>
using namespace std;

typedef long long LL;
#define rep(i ,n) for(int i=0;i<n;i++)
#define MOD 1000000007
#define all(v) (v).begin(),(v).end()
#define arycpy(ary1,ary2,N) memcpy(ary2,ary1,sizeof(int)*N) //ary1:???????????? ary2:????????????
typedef vector<int> vi;

int main(){
	double h;
	int sum[6] = {};	
	int n;
	cin >> n;
	for (int i = 0; i < n; i++){
		cin >> h;
		if (h < 165) sum[0]++;
		else if (h < 170) sum[1]++;
		else if (h < 175) sum[2]++;
		else if (h < 180) sum[3]++;
		else if (h < 185) sum[4]++;
		else sum[5]++;
	}

	for (int i = 0; i < 6; i++){
		cout << i + 1 << ":";
		for (int j = 0; j < sum[i]; j++){
			cout << "*";
		}
		cout << endl;
	}
	return 0;
}