//22
#include<iostream>
#include<string>

using namespace std;

int main(){
  int his[6]={};
  int n;
  cin>>n;
  for(int i=0;i<n;i++){
    double h;
    cin>>h;
    his[int((h-160)/5)]++;
  }
  for(int i=0;i<6;i++){
    cout<<i+1<<':'<<string(his[i],'*')<<endl;
  }
  return 0;
}