#include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

int main()
{
    int tall[] = {165, 170, 175, 180, 185};
    int n;
    cin >> n;

    vector<int> num(6);
    while(--n >= 0){
        int a, b;
        char c;
        cin >> a >> c >> b;

        int i = upper_bound(tall, tall+5, a) - tall;
        ++ num[i];
    }

    for(int i=0; i<6; ++i)
        cout << (i+1) << ':' << string(num[i], '*') << endl;

    return 0;
}