#include<bits/stdc++.h>

using namespace std;

int main(){

  int n;

  cin >> n;

  vector<double> h(n);
  vector<int> num(6);
  
  for(int i=0;i<n;++i){
	cin >> h[i];

	if(h[i] < 165.0)
	  num[0]++;
	else if(h[i] >= 165.0 && h[i] < 170.0)
	  num[1]++;
	else if(h[i] >= 170.0 && h[i] < 175.0)
	  num[2]++;
	else if(h[i] >= 175.0 && h[i] < 180.0)
	  num[3]++;
	else if(h[i] >= 180.0 && h[i] < 185.0)
	  num[4]++;
	else if(h[i] >= 185.0)
	  num[5]++;
	
  }
	
  for(int i=0;i<=5;++i){
	cout << i+1 << ":";

	for(int j=0;j<num[i];++j)
	  cout << "*";

	cout << endl;
	
  }
  
}
  
