function Main(input) {
	input = input.trim().split(" ").map((a)=>Number(a));
  var output = 3;
  if((input[0] == input[1] && input[0] != input[2]) || 
    (input[0] != input[1] && input[0] == input[2])){
     output--;
  }else if(input[0] == input[1] && input[0] == input[2]){
     output = 1;
  }
  
  console.log(output);
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
