function main(a){
	a = a.split(" ");
	a.push(a[0]);
	var sum=0;
	a.reduce(function(prev,value){
			sum+=comp(prev,value);
			return value;
		});
	if(!sum){
		sum++;
	}
	op(sum);
}
function comp(a,b){
	if(a!==b){
		return 1;
	}else{
		return 0;
	}
}
function op(a){
	console.log(a);
}
function stn(a){
		return a.map(function(x){return parseInt(x,10);});
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));