#include <bits/stdc++.h>
#define rep(i,l,n) for(int i=l;i<n;i++)
#define rer(i,l,n) for(int i=l;i<=n;i++)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
#define fi first
#define se second
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int,int> pii;

int main(){
	int n,d[6]={};
	double h;
	cin>>n;
	rep(i,0,n){
		cin>>h;
		h-=165;
		if(h<0) d[0]++;
		else if(h<5) d[1]++;
		else if(h<10) d[2]++;
		else if(h<15) d[3]++;
		else if(h<20) d[4]++;
		else d[5]++;
	}
	rep(i,0,6){
		cout<<i+1<<":";
		rep(j,0,d[i]) cout<<"*";
		cout<<endl;
	}
}