'use strict'

const main = input => {
	const args = input.split('\n')[0].split(' ')
	let cnt = 1
	if (args[1] !== args[0]) cnt++
	if (args[2] !== args[1] && args[2] !== args[0]) cnt++
	console.log(cnt)
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
