#include <iostream>
#include <vector>
using namespace std;

#define rep(i,n) for(int i = 0; i<n ; i++)


int main(){

	int n;
	vector<double> v(100,0);	
	vector<int> h(7,0);
	cin >> n;
	rep(i,n)
	{	
		cin >> v[i];
		if(v[i] <165.0)
			h[0]++;
		else if(v[i]<170.0)
			h[1]++;
		else if(v[i] < 175.0)
			h[2]++;
		else if(v[i] < 180.0)
			h[3]++;
		else if(v[i] < 185.0)
			h[4]++;
		else 
			h[5]++;
	}
	rep(j,6)
		rep(k,h[j]+1)
			{
			 if(k == 0)cout << j+1 << ":";
			 if(h[j] != 0&& k != 0)cout << "*";
			 if(k == h[j])
				cout << endl;
			}




}