#include <stdio.h>

int main(void){
int array[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int counter=0, c, position;
while ((c = getchar()) != EOF){
    if(c == ' '){
    	array[counter]++;
        counter = 0;
    } else {
        counter ++;
    }
}
if(counter!=0) {
	array[counter]++;
}
position = 0;
for (position = 0; position < 10; ++position){
    printf("%d", array[position]);
}
    return 0;
}  