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

int main()
{
  int n;
  cin>>n;
  int c[6];
  memset(c,0,sizeof(c));
  for(;n--;)
    {
      double t;
      cin>>t;
      int i=0;
      for(double l=185.0;l>164.9;l-=5.0,i++)
	{
	  if(l<=t)
	    {
	      c[i]++;
	      i=-1;
	      break;
	    }
	}
      if(i!=-1)
	c[5]++;
    }
  for(int i=5;i>=0;i--)
    {
      cout<<6-i<<":";
      for(;c[i]--;)
	cout<<"*";
      cout<<endl;
    }
    
}