#include <stdio.h>
int main() {
    int RB[6]={0,0,0,0,0,0},i,N,j,T[5]={1650,1700,1750,1800,1850};while (scanf("%d",&N)!=EOF) {
    while (N--) {scanf("%d.%d",&i,&j);i=i*10+j;if (i<T[0]) RB[0]++; else if (i>=T[4]) RB[5]++; else {for (j=1;j<5;j++) if (T[j-1]<=i && T[j]>i) RB[j]++;}}
    for (i=0;i<6;i++) {printf("%d:",i+1);while (RB[i]) RB[i]--,putchar('*');puts("");}} return 0;}