#include <cctype>
#include <iostream>
using namespace std;
int main() {
string str;
getline(cin,str);
int alpha=0,num=0,space=0,other=0;
for(int i=0;i<str.size();i++){
if(isalpha(str[i]))alpha++;
else if(isspace(str[i]))space++;
else if(isalnum(str[i]))num++;
else other++;
}
cout<<alpha<<endl;
cout<<space<<endl;
cout<<num<<endl;
cout<<other<<endl;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号