function main(input){
  let count = 0;
  const num1 = parseInt(input[0]);
  const num2 = parseInt(input[1]);
  const num3 = parseInt(input[2]);
  
  if(num1 ===1 ){
    count += 1;
  };
  if(num ===1){
    count += 1;
  };
  if(num3 ===1){
    count += 1;
  };
  console.log(count); 
};

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