#include<stdio.h>
int main()
{
char b[100];
gets(b);
int i,j,k=0,t=0,m=0,n=0;
for(i=0;b[i]!='\0';i++)
{
if(b[i]>='0'&&b[i]<='9')
k++;
else if((b[i]>='A'&&b[i]<='Z')||(b[i]>='a'&&b[i]<='z'))
t++;
else if(b[i]==' ')
m++;
else
n++;
}
printf("数字数:%d,字母数:%d,空格数:%d,其他字符数:%d",k,t,m,n);
return 0;
}