#include<iostream>
using namespace std;

int main(){
  int n;
  cin >> n;
  int counter[6] = {0};
  for (int i = 0; i < n; i++) {
    double hight;
    cin >> hight;
    counter[(int)((hight - 160)/5)]++;
  }
  for (int i = 0; i < 6; i++) {
    std::cout << i + 1 << ":";
    while(counter[i] > 0){
      std::cout << '*';
      counter[i]--;
    }
    std::cout << std::endl;
  }

  return 0;
}