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