#include <cstdio>
#include <iostream>
#include <string>
#include <algorithm>

using namespace std;

template <typename T>
T clamp(T x, T mini, T maxi) {
  return min(max(x, mini), maxi);
}

int main() {
  int n;
  scanf("%d", &n);

  int bucket[6] = {};
  for (int i = 0; i < n; i++) {
    int height;
    scanf("%d.%*d", &height);
    bucket[clamp((height - 160) / 5, 0, 5)]++;
  }
  for (int i = 0; i < 6; i++) {
    cout << i + 1 << ':' << string(bucket[i], '*') << '\n';
  }
  return 0;
}