#include
#include
int main()
{int i,a[5];
char s[200];
gets(s);
for(i=0;s[i];i++)
if(isupper(s[i]))a[0]++;
else if(islower(s[i]))a[1]++;
else if(s[i]==' ')a[2]++;
else if(isdigit(s[i]))a[3]++;
else a[4]++;
printf("英文大写字母有%d个\n",a[0]);
printf("英文小写字母有%d个\n",a[1]);
printf("空格有%d个\n",a[2]);
printf("数字有%d个\n",a[3]);
printf("其它字符有%d个\n",a[4]);
return 0;
}