// inputに入力データ全体が入る
function Main(input) {
	abc = input.split(" ");
  	abc = abc.map(c => parseInt(c));
	var set = new Set(abc);
  	console.log(set.size);
}

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