#include <cstdio>
int main()
{
    int n, h, t, a[6];
    scanf("%d", &n);
    for (int i = 0; i < 6; ++i) a[i] = 0;
    for (int i = 0; i < n; ++i) {
        scanf("%d.%d", &h, &t);
        h = 10*h + t;
        if (h < 1650) a[0]++;
        else if (h < 1700) a[1]++;
        else if (h < 1750) a[2]++;
        else if (h < 1800) a[3]++;
        else if (h < 1850) a[4]++;
        else a[5]++;
    }
    for (int i = 0; i < 6; ++i) {
        printf("%d:", i+1);
        for (int j = 0; j < a[i]; ++j) putchar('*');
        puts("");
    }
    return 0;
}