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

int main(){

  double x;
  int n,a[10] = {0};
  cin >> n;

  for(int i=0;i<n;i++){
    cin >> x;

    if(185 <= x) a[6]++;
    else if(180 <= x) a[5]++;
    else if(175 <= x) a[4]++;
    else if(170 <= x) a[3]++;
    else if(165 <= x) a[2]++;
    else a[1]++;

  }

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