#include <stdio.h>
void main( )
{
char ch;
int en=0,digital=0,space=0,other=0;
while((ch=getchar()) != '\n')
{
if((ch>='a' && ch<='z') || (ch>='A' && ch<='Z'))
{
en++;
}
else
if(ch>='0' && ch<='9')
{
digital++;
}
else
if(ch==' ')
{
space++;
}
else
{
other++;
}
}
printf("字母 %d 个\n",en);
printf("数字 %d 个\n",digital);
printf("空格 %d 个\n",space);
printf("其他 %d 个\n",other);
}