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