function main(input) {
	input = input.split(' ');
  	const s1 = String(input[0]);
  	const s2 = String(input[1]);
  	const s3 = String(input[2]);
  	const counter = 0;
  
  	if(s1 === "1") { return counter++; }
    if(s2 === "1") { return counter++; }
	if(s3 === "1") { return counter++; }
	
  	console.log(counter);
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));