#include <iostream> #include <cstdio> char str[101]; int main() { int count=0; fgets(str,101,stdin); for(int i=0;str[i];i++) if(str[i] >= '0' && str[i] <= '9') count++; printf("%d",count); return 0; }