#include <iostream>
using namespace std;
int main(void)
{
  int n;
  double std[40];
  int range[6]={0};

  cin >> n;
  
  for(int i = 0 ; i < n ; i++) {
    cin >> std[i];
    if(std[i] < 165.0) range[0]++;
    else if(std[i] >= 165.0 && std[i] < 170.0) range[1]++;
    else if(std[i] >= 170.0 && std[i] < 175.0) range[2]++;
    else if(std[i] >= 175.0 && std[i] < 180.0) range[3]++;
    else if(std[i] >= 180.0 && std[i] < 185.0) range[4]++;
    else if(std[i] >= 185.0) range[5]++;
  }
  
  for(int i = 0 ; i < 6 ; i++) {
      cout << i+1 << ':';
      while(range[i] != 0) {
	cout << '*';
	range[i]--;
      }
      cout << endl;
  }
  return 0;
}