#include
using namespace std;
int main()
{
char c;
int letters=0;
int space=0;
int digit=0;
int other=0;
while((c=getchar())!='\n')
{
if((c>='a' && c<='z') || (c>='A' && c<='Z'))
{
letters++;
}
else if(' '==c){
space++;
}
else if(c>='0' && c<='9'){
digit++;
}
else
other++;
}
cout<<"字母的个数为:"<<letters<< endl;
cout<<"空格的个数为:"<<space<< endl;
cout<<"数字的个数为:"<<digit<< endl;
cout<<"其他字符的个数为:"<<other<< endl;
return 0;
}