import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val a, b, c = sc.nextInt()
    val ans = if(a==b&&b==c) {
      1
    } else if(a==b || b == c || c == a) {
      2
    } else {
      3
    }
    println(ans)
  }
}
