#define _CRT_SECURE_NO_WARNINGS
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for(int i=0; i<(n); ++i)
#define FOR(i, m, n) for(int i=(m); i<(n); ++i)
#define sz(x) ((int)(x).size())
#define all(x) (x).begin(),(x).end()
#define mp make_pair
#define pb push_back
#define Cout(x) cout << (x) << endl
#define Cout2(x, y) cout << (x) << " " << (y) << endl
#define dump(x) cout << #x << " = " << (x) << endl;
#define forauto(i, a) for(auto i : a)cout << i << " "; puts("");
typedef long long LL;
typedef vector<int> VI;
typedef vector<LL> VL;
typedef vector<string> VS;
typedef vector<bool> VB;
typedef vector<vector<int>> VVI;
typedef pair<int, int> PII;
const int inf = 1e9;
const double pi = acos(-1.0);

string re(char c, int n) {
	string ret;
	ret.assign(n, c);
	return ret;
}

int main() {
	int n; cin >> n;
	VI data(6);
	rep(i, n) {
		double h; cin >> h;

		int a;
		if (h < 165.0)a = 0;
		else if (h < 170.0)a = 1;
		else if (h < 175.0)a = 2;
		else if (h < 180.0)a = 3;
		else if (h < 185.0)a = 4;
		else a = 5;

		data[a]++;
	}

	rep(i, 6)cout << i + 1 << ":" << re('*', data[i]) << endl;
}
