function Main(input) {
  input = input.split(" ");
var a = input[0];
var b = input[1];
var c = input[2];
var count = 3;
if( a == b ){
count --;
if( b == c ){
count --;
}
}else{
if( b == c ){
count --;
}
if(a == c){
 count --;
}
}
console.log(count);
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));