#include <string> #include <iostream> using namespace std; int main () { int num; char c; while (cin >> c) { if ( c >= '0' && c <= '9') num++; } cout << num <<endl; return 0; }