#include<iostream>
#include<cctype>
#include<string>
using namespace std;
class textprocvessor
{
private:
    string str;
    int nums, specs;
    
public:
    void input()
    {
        getline(cin, str);
        if (str.length() > 100) str =str.substr(0,100);
    }
    void count()
    {
        num = space = 0;
        for(char c : str)
           if(isdigit(c)) num++;
           else if(!isalpha(c)&& ! isspace(c)) specs++;
    }
    void output()
    {
        cout<<"Number of text inputs:"<<num<<endl;
        cout<<"Number of special characters:"<<space<<endl;
    }
};
int main()
{
    processor p;
    p.input();
    p.count();
    p.output();
    return 0;
}