#include<bits/stdc++.h> using namespace std; int main(){ int c=0,b=0,d=0; char a[200]; gets(a); for(int i=0;a[i]!='#';i++){ if(a[i]>='A'&&a[i]<='Z') c++; if(a[i]>='a'&&a[i]<='z') b++; if(a[i]>='0'&&a[i]<='9') d++; } cout<<c<<" "<<b<<" "<<d; return 0; } /************************************************************** Problem: 1097 User: lidongcheng Language: C++ Result: Accepted Time:7 ms Memory:2072 kb ****************************************************************/