#include <iostream>
using namespace std;
	int x[10];
int main() {
	char c;
	while((c=cin.get())!=EOF){
		x[c-'0']++;
	}
	for(int i=0;i<10;i++){
		cout<<x[i]<<" ";
	}
	
	// your code goes here
	return 0;
}