object Main {

  import java.util.Scanner

  def main(args: Array[String]): Unit = {
    val scanner = new Scanner(System.in)
    var str = scanner.next()
    var ref = 0
    val a = str.toInt
    str = scanner.next()
    val b = str.toInt
    str = scanner.next()
    val c = str.toInt

    if(a == b && b == c)
      println(1)
    else if (a == b || b == c || a == c)
      println(2)
    else
      println(3)
  }
}
