#include <iostream>
#include <string>

using namespace std;

int main() {

    string str;
    getline(cin, str);

    int whitespace = 0;
    int digits = 0;
    int chars = 0;
    int others = 0;

    // write your code here......
    for (int i = 0; i < str.size(); i++) {
        if (str[i] >= 65 && str[i] <= 88 || str[i] >= 97 && str[i] <= 120) {
            chars++;
        } else if (str[i] == 32) {
            whitespace++;
        } else if (str[i] >= 48 && str[i] <= 57) {
            digits++;
        } else {
            others++;
        }
    }



    cout << "chars : " << chars
         << " whitespace : " << whitespace
         << " digits : " << digits
         << " others : " << others << endl;

    return 0;
}