#include <iostream>
#include <array>
#include <string>
#include <cmath>

int main() {
    std::array<int, 7> cnt_rank{};
    int n;

    std::cin >> n;

    for (; n--;) {
        double height;
        std::cin >> height;
        
        height -= 165.;
        
        if (height < 0) {
            ++cnt_rank[0];
        }
        else {
            int rank;
            rank = std::min((int)(height / 5 + 1), 6);

            ++cnt_rank[rank];
        }
    }
    
    for (int i = 0; i < 6; ++i) {
        std::cout << i + 1 << ":" << std::string(cnt_rank[i], '*')
                  << std::endl;
    }
    
    return 0;
}