#include <iostream>
#include <algorithm>
#include <cassert>
#include <cctype>
#include <complex>
#include <cstdio>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;

int n,d[7];
double h;

int main(){
	cin>>n;
	while(cin>>h){
		double l=165.0;
		int m=1;
		while(h>=l&&m<6){l+=5.0;m++;}
		d[m]++;
	}
	for(int i=1;i<7;i++){
		cout<<i<<":";
		for(int j=0;j<d[i];j++)cout<<"*";
		cout<<endl;
	}
}