//满意请采纳
#include
void fun(char*str,int*times){
int i;
for(i=0;str[i];i++){
if(str[i]-'0'>=0&&str[i]-'0'<=9)
times[str[i]-'0']++;
}
}
int main(){
char str[100]={0};
int i,j,times[10]={0};
scanf("%s",str);
fun(str,times);
for(i=0;i<10;i++)
printf("%4d",times[i]);
return 0;
}