#include<stdio.h>//输入一行字符,分别统计出其中的中英文字母,数字,空格和其他字符的个数
int main()
{
/*********Begin*********/
char c;
int letters=0,space=0,digit=0,others=0;
while((c=getchar())!='\n')//判断输入的字符不是'\n',然后回车,只要输入的不是回车,将一直循环
{
if(c>='a'&&c<='z'||c>='A'&&c<='Z')
letters++;
else if(c==' ')
space++;
else if(c>='0'&&c<='9')
digit++;
else
others++;
}
printf("%d %d %d %d",letters,digit,space,others);
/*********End**********/
return 0;
}