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