#include <iostream>
#include <string>
using namespace std;
void strnum(string s,int &a,int &b,int &c,int &d)
{
for(int i=0;s[i]!='\0';i++)
{
if(s[i]>='a'&&s[i]<='z'||s[i]>='A'&&s[i]<='Z')
c++;
else if(s[i]>='0'&&s[i]<='9')
b++;
else if(s[i]==' ')
a++;
else
d++;
}
}
int main() {
string str;
getline(cin, str);
int whitespace = 0;
int digits = 0;
int chars = 0;
int others = 0;
// write your code here......
strnum(str,whitespace,digits,chars,others);
cout << "chars : " << chars
<< " whitespace : " << whitespace
<< " digits : " << digits
<< " others : " << others << endl;
return 0;
}