#include <iostream> #include <string> using namespace std; int main() { string str; int cnt = 0; getline(cin, str); for (auto c : str) { if (c >= '0' && c <= '9') cnt ++; } cout << cnt << endl; return 0; }