#include<iostream>
using namespace std;

int main(){
  int n;
  int cnt[6] = {};
  double s;

  cin >> n;
  for(int i=0;i<n;i++){
    cin >> s;
    double t = 165;
    bool f = false;
    for(int j=0;j<5;j++){
      if(!f && s<t){
	cnt[j]++;
	f = true;
      }
      t += 5;
    }
    if(!f)cnt[5]++;
  }

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