#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <string>
#include <math.h>
#include <functional>
#include <algorithm>
#include <utility>

typedef long long Int;
#define REP(i,n) for(int i = 0 ; i < n ; ++i)
#define REPS(a,i,n) for(int i = a ; i < n ; ++i)
using namespace std;

int dosu[6];

int main(){
	int n;
	cin >> n;

	REP(i, n){
		double a;
		cin >> a;
		if (a < 165)
			dosu[0]++;
		else if (a < 170)
			dosu[1]++;
		else if (a < 175)
			dosu[2]++;
		else if (a < 180)
			dosu[3]++;
		else if (a < 185)
			dosu[4]++;
		else
			dosu[5]++;
	}

	REPS(1, i, 7){
		cout << i << ":";
		REP(j, dosu[i - 1]){
			cout << "*";
		}
		cout << endl;
	}


	return 0;
}