function main(input) {
    const args = input.split('');
  const cnt = 0  
  args.forEach(arg => {
      if(parseInt(arg, 10) === 1) cnt + 1
  })
}

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