//Frequency Distribution of Height
#include<bits/stdc++.h>
using namespace std;

int d[6]={0};

int main(){
  int n;
  cin>>n;
  while(n--){
    double tmp;
    cin>>tmp;
    if(tmp<165.0)d[0]++;
    else if(tmp<170.0)d[1]++;
    else if(tmp<175.0)d[2]++;
    else if(tmp<180.0)d[3]++;
    else if(tmp<185.0)d[4]++;
    else d[5]++;
  }

  for(int i=0; i<6; i++){
    cout<<i+1<<":";
    for(int j=0; j<d[i]; j++)
      cout<<'*';
    cout<<endl;
  }
  return 0;
}