#include <iostream>
using namespace std;

void res(int);
int judge(double);

int main(void){
  int n,cnt[6]={0};
  double height;

  cin >> n;
  for( int i = 0 ; i < n ; i++ ){
    cin >> height;
    cnt[judge(height)-1]++;
  }

  for( int i = 0 ; i < 6 ; i++ ){
    cout << i+1 << ':';
    res(cnt[i]);
  }

  return 0;
}

void res(int cnt){
  while(cnt > 0 ){
    cout << '*';
    cnt--;
  } 
  cout << endl;
}

int judge(double h){

  if( h < 165.0 ) return 1;
  else if( h < 170.0 ) return 2;
  else if( h < 175.0 ) return 3;
  else if( h < 180.0 ) return 4;
  else if( h < 185.0 ) return 5;
  return 6;

}