#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES

#include <stdio.h>
#include <ctype.h>
#include <string>
#include <iostream>
#include <vector>
#include <stack>
#include <fstream>
#include <sstream>
#include <queue>
#include <exception>
#include <cmath>
#include <numeric>
#include <map>
#include <algorithm>
#include <bitset>
#include <set>
#include <functional>

#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)

using namespace std;
typedef long long int lint;

bool AOJ0136()
{
	int n;
	cin >> n;
	double h;
	int dist[6] = { 0 };
	REP(i, n) {
		cin >> h;
		if (h < 165) dist[0]++;
		else if (h < 170) dist[1]++;
		else if (h < 175) dist[2]++;
		else if (h < 180) dist[3]++;
		else if (h < 185) dist[4]++;
		else dist[5]++;
	}
	REP(i, 6) {
		cout << i + 1 << ":";
		REP(j, dist[i]) {
			cout << "*";
		}
		cout << endl;
	}

	return true;
}

int main()
{
	AOJ0136();

	return 0;
}