import java.io.;
import java.util.;
public class Main{
public static void main(String arges[]) throws Exception{
Scanner cin = new Scanner(System.in);
String str = cin.nextLine();
char c[] = str.toCharArray(); //利用toCharArray方法转换,将字符串转换成字符数组;以便后面的计算!
int cnt = 0; //数字字符的个数。
for(int i = 0; i< c.length; i++){
if(c[i] >= '0' && c[i] <= '9' ){
cnt++;
}
}
System.out.printf("%d", cnt);
}
}