#include<iostream>
#include<cctype>
using namespace std;
int main() {
char ch;
int whitespace = 0;
int digits = 0;
int chars = 0;
int punct = 0;
int others = 0;
cin.get(ch);
while (ch != '@') {
if (isalpha(ch)) { //调用cctype中函数isalpha()判断是否为字母
++chars;
}
else if (isspace(ch)) { //调用cctype中函数isspace()判断是否为空格
++whitespace;
}
else if (isdigit(ch)) { //调用cctype中函数isdigit()判断是否为数字
++digits;
}
else if (ispunct(ch)) { //调用cctype中函数ispunct()判断是否为标点符号
++punct;
}
else
++others;
cin.get(ch);
}
cout << chars << "个 字母" << endl;
cout << whitespace << "个 空格" << endl;
cout << digits << "个 数字" << endl;
cout << punct << "个 标点符号(,和.)" << endl;
cout << others << "个 其他字符" << endl;
return 0;
}