#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using pii = pair<int, int>;

int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(10);
  
  int n;
  cin >> n;
  int cnt[6] = {};
  for (int i = 0; i < n; i++) {
    double h;
    cin >> h;
    if (h < 165) cnt[0]++;
    else cnt[int(h - 165) / 5 + 1]++;
  }
  for (int i = 0; i < 6; i++) {
    cout << i + 1 << ":" << string(cnt[i], '*') << endl;
  }

  return 0;
}
