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