#include<bits/stdc++.h> using namespace std; int main(){ string words; getline(cin,words); int a=0,b=0,c=0,d=0; for(int i=0;i<words.size();i++){ if(isalpha(words[i])){ a++; } else if(words[i]==' '){ b++; } else if(isdigit(words[i])){ c++; } else{ d++; } } printf("%d %d %d %d",a,b,c,d); return 0; }
0.0分
0 人评分