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