#include<stdio.h>
#include<stdlib.h>
int main()
{
char s[128];
int a;
int A;
int n;
int other;
a=A=n=other=0;
while(gets(a))
{
for(i=0;a[i]!='\n';i++)
{
if(a[i]>='a'&&a[i]<='z') a++;
else if(a[i]>='A'&& a[i]<='Z') A++;
ele if(a[i]>='0'&&a[i]<='9')n++;
else other ++;
}
printf("%d %d %d %d:",a,A,n,other);
}
return 0;
}
温馨提示:答案为网友推荐,仅供参考