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

int main() {
  int n;
  cin >> n;
  int a[6] = {0};
  while(n--) {
    double h;
    cin >> h;
    a[max(0, min(5, ((int)(h*10)-1600)/50))] += 1;
  }
  for(int i = 0; i < 6; ++i) {
    cout << i+1 << ":" << string(a[i], '*') << endl;
  }
  return 0;
}