fun main(args: Array<String>){
    val N = readLine()!!.split(" ").map{ it.toInt()}

    var a = mutableListOf<Int>()

    for(i in N.distinct()){
        if(a.contains(i)){
            continue
        }else{
            a.add(i)
        }
    }
    println(a.size)

}