#include<iostream>
#include<algorithm>
using namespace std;

int main(){
  int i;
  cin >> i;
  float data[40] = {}; 
  for(int j=0; j<i; ++j){
    cin >> data[j];
  }
  sort(data, data+i);
  int j=0;
  cout << "1:";
  while(data[j]<165 && data[j]!=0){
    cout << "*";
    ++j;
  }
  cout << endl << "2:";
  while(data[j]<170 && data[j]!=0){
    cout << "*";
    ++j;
  }
  cout << endl << "3:";
  while(data[j]<175 && data[j]!=0){
    cout << "*";
    ++j;
  }
  cout << endl << "4:";
  while(data[j]<180 && data[j]!=0){
    cout << "*";
    ++j;
  }
  cout << endl << "5:";
  while(data[j]<185 && data[j]!=0){
    cout << "*";
    ++j;
  }
  cout << endl << "6:";
  while(data[j]!=0){
    cout << "*";
    ++j;
  }
  cout << endl;
  return 0;
}

