#include
#include
int findNumber(char *s){
int num=0;
while(*s){
if(*s>='0'&&*s<='9')
num++;
s++;
}
return num;
}
int findSpace(char *s){
int num = 0;
while(*s){
if(*s==' ')
num++;
s++;
}
return num;
}
int main(){
char str[20];
scanf("%[^\n]",str);
printf("数字:%d,空格:%d\n",findNumber(str),findSpace(str) );
return 0;
}