#include<stdio.h>
int main()
{
char ch;
int a=0,b=0,c=0,d=0;
while((ch=getchar())!='\n')
{
if(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z')
a++;
else if(ch>='0'&&ch<='9')
b++;
else if(ch==32)
c++;
else
d++;
}
printf("英文字母有%d、空格有%d、数字有%d\其他字符有%d",a,c,b,d);
return 0;
}