// #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <locale>
#include <cctype>
#include <sstream>	// istringstream
using namespace std;

void Output(vector<int> ans){
	for (int i = 0; i < 6; i++){
		cout << (i + 1) << ":";
		for (int j = 0; j < ans[i]; j++){
			cout << "*";
		}
		cout << endl;
	}
}

int main(){
	int n;
	double in;
	vector<int> ans(7, 0);

	cin >> n;
	for (int i = 0; i < n; i++){
		cin >> in;
		for (int i = 0; i < 6; i++){
			if (in < (165.0 + 5.0*i)){
				ans[i]++;
				break;
			}
		}
		/*
		if (in < 165.0)	ans[0]++;
		else if (in >= 165.0 && in < 170.0)	ans[1]++;
		else if (in >= 170.0 && in < 175.0)	ans[2]++;
		else if (in >= 175.0 && in < 180.0)	ans[3]++;
		else if (in >= 180.0 && in < 185.0)	ans[4]++;
		else			ans[5]++;
		*/
	}
	Output(ans);
	return 0;
}