#include <algorithm>
#include <cctype>
#include <iostream>
#include <string>
using namespace std;
int main() {
string s;
getline(cin, s);
cout << count_if(s.begin(), s.end(), ::isdigit) << endl;
return 0;
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGNjdHlwZT4KI2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKCXN0cmluZyBzOwoJZ2V0bGluZShjaW4sIHMpOwoJY291dCA8PCBjb3VudF9pZihzLmJlZ2luKCksIHMuZW5kKCksIDo6aXNkaWdpdCkgPDwgZW5kbDsKCXJldHVybiAwOwp9