function main(input) {
const a = input.split(" ").map(Number);
  console.log(a[0]==a[1]&&a[0]==a[2]?"1"
			　:a[0]==a[1]&&a[1]!=a[2]?"2"
			  :a[0]==a[2]&&a[1]!=a[2]?"2"
			  :a[1]==a[2]&&a[0]!=a[2]?"2"
			  :"3");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));