#include "bits/stdc++.h"
#include<unordered_map>
#include<unordered_set>
#pragma warning(disable:4996)
using namespace std;
using ld = long double;
const ld eps = 1e-9;

//// < "d:\d_download\visual studio 2015\projects\programing_contest_c++\debug\a.txt" > "d:\d_download\visual studio 2015\projects\programing_contest_c++\debug\b.txt"


int main() {
	int N; cin >> N;
	vector<int>nums(6);
	for (int i = 0; i < N; ++i) {
		ld num; cin >> num;
		num += 0.001;
		
		for (int j = 0; j <6; ++j) {
			if (num < 165 + j * 5) {
				nums[j]++;
				break;
			}
		}

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