#include<stdio.h>
#include<string.h>
main()
{char c[100];
int i,n,digital=0,blank=0,other=0,ch=0;
printf("please input the string:\n");
gets(c);
n=strlen(c);
for(i=0;i<n;i++)
{if((c[i]>='a'&&c[i]<='z')||(c[i]>='A'&&c[i]<='Z'))
ch++;
else if(c[i]=' ')blank++;
else if(c[i]>=0&&c[i]<=9)digital++;
else other++;}
printf{"%d%d%d%d",digital,blank,ch,other);
}