#include<bits/stdc++.h>
using namespace std;

#define rep(i,n) for(int i = 0; i < n; i++)
#define ll long long
#define EPS 1.0e-8
#define MAX_N 100
typedef pair<int,int> P;

int main(){
	int n;
	double h;
	int cnt[6] = {};

	cin >> n;
	rep(i, n){
		cin >> h;
		if(h < 165.0) cnt[0]++;
		else if(h >= 165.0 && h < 170.0) cnt[1]++;
		else if(h >= 170.0 && h < 175.0) cnt[2]++;
		else if(h >= 175.0 && h < 180.0) cnt[3]++;
		else if(h >= 180.0 && h < 185.0) cnt[4]++;
		else if(h >= 185.0) cnt[5]++;

	}


	rep(i,6){
		printf("%d:",i+1);
		rep(j,cnt[i]) cout << "*";
		cout << endl;
	}
}