function main(input) {
    const args = input.split('');

    let count = 0;
    for(let i=0;i<args.length; i++){
        if(args[i] > 0){
            count = count + 1
        }
    }
    console.log(count)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));