#include<bits/stdc++.h>
using namespace std;

#define pb push_back
#define fr first
#define sc second
typedef vector<int> vi;
typedef pair<int,int> pii;
typedef pair<int,pii> pip; 
const int INF = (1<<25);
const int dx[]={1,0,-1,0},dy[]={0,-1,0,1};

int main() {

  int n;
  int data[6]={0};
  cin>> n;
  while(n--) {
    double height;
    cin>> height;

    if(height < 165) data[0]++;
    else if(height < 170) data[1]++;
    else if(height < 175) data[2]++;
    else if(height < 180) data[3]++;
    else if(height < 185) data[4]++;
    else data[5]++;

  }

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

}