//
// Created by Administrator on 2022/10/26.
//
#include<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main(){
int nubmer=0;
int empty=0;
int leter=0;
int other=0;
string s;
getline(cin,s);
for(int i=0;i<s.size();i++){
if(isdigit(s[i])) {
nubmer = nubmer + 1;
}
else if(isalpha(s[i])){
leter++;
}
else if(s[i]==' '){
empty++;
}
else{
other++;
}
}
cout<<leter<<" "<<nubmer<<" "<<empty<<" "<<other<<endl;
return 0;
}
0.0分
0 人评分