import java.util.Scanner

fun main(args: Array<String>){
    val scanner = Scanner(System.`in`)
    val result = D1015A(
                    scanner.nextInt()
                   ,scanner.nextInt()
                   ,scanner.nextInt()
                 ).judge()
    println(result)
}

class D1015A(
  val paintA: Int
 ,val paintB: Int
 ,val paintC: Int
){
    fun judge(): Int{
        val paints = arrayOf(paintA, paintB, paintC)
        return paints.distinct().count()
    }
}