#include <iostream>
#include <string>
using namespace std;
int main(void)
{
string s;
getline(cin, s);
int cnt = 0;
for (int i = 0; i < s.size(); i++) {
if (s[i] >= '0' && s[i] <= '9') cnt++;
}
cout << cnt << endl;
return 0;
}