#include <stdio.h>
int main(void)
{
int i, j, hist[10] = {0}, n;

for(i=0; i<20; i++) {
do { scanf("%d", &n); } while(n < 0 || 9 < n);
hist[n]++;
}

for(i=0; i<10; i++) {
printf("%d:", i);
for(j=0; j<hist[i]; j++) printf("*");
printf("\n");
}

return 0;
}