#include <stdio.h>
#include<ctype.h>
int main(){
int i,j,y,upper=0,lower=0,n=0,space=0,other=0;
char a[3][100]={0};
for(i=0;n<3;i++)
gets(a[i]);
for(i=0;i<3;i++)
{for(j=0;a[i][j]!='\0';j++)
if(isupper(a[i][j])) upper++;
if(islower(a[i][j])) lower++;
if(isdigit(a[i][j])) n++;
if(isspace(a[i][j]))space++;
else other++;}
printf("%d %d %d %d %d",upper,lower,n,space,other) ;
return 0;
}
getchar()吃掉了一个字符