import io.{StdIn => in}
import scala.collection.mutable.HashSet

object Main extends App {
  val Array(a, b, c) = in.readLine.split(" ").map(_.toInt)
  val set = HashSet.empty[Int]
  set += a
  set += b
  set += c
  val ans = set.size
  println(ans)
}