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